summaryrefslogtreecommitdiff
path: root/src/layout/regions.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-26 16:32:06 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-26 16:32:06 +0100
commit3a15922d2ffc041c3523edb479f008a9034fd400 (patch)
tree988fe103c0752696c1fade2123142a8db5361ab7 /src/layout/regions.rs
parent393d74f9bb0d4c71a69108d5be261103c39f47f3 (diff)
X/Y abstractions
Diffstat (limited to 'src/layout/regions.rs')
-rw-r--r--src/layout/regions.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/regions.rs b/src/layout/regions.rs
index 0ef92543..66e6da17 100644
--- a/src/layout/regions.rs
+++ b/src/layout/regions.rs
@@ -51,7 +51,7 @@ impl Regions {
/// Whether the current region is full and a region break is called for.
pub fn is_full(&self) -> bool {
- Length::zero().fits(self.current.h) && !self.in_last()
+ Length::zero().fits(self.current.y) && !self.in_last()
}
/// Whether `current` is the last usable region.