summaryrefslogtreecommitdiff
path: root/src/library/flow.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-23 14:25:50 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-23 14:25:50 +0100
commitc77c5a0f0ae6560a03a85e847006c29de9c7ae62 (patch)
tree18054ddb95e495cf2e198ca7bac0a5daac7b8240 /src/library/flow.rs
parent4f9e5819bbab1f93ad4f4b789038c60487a76368 (diff)
Simpler alignment resolving
Diffstat (limited to 'src/library/flow.rs')
-rw-r--r--src/library/flow.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/flow.rs b/src/library/flow.rs
index 5271eca9..93dcbea6 100644
--- a/src/library/flow.rs
+++ b/src/library/flow.rs
@@ -236,8 +236,8 @@ impl<'a> FlowLayouter<'a> {
ruler = ruler.max(aligns.y);
// Align horizontally and vertically.
- let x = aligns.x.resolve(Length::zero() .. size.w - frame.size.w);
- let y = ruler.resolve(before .. before + size.h - self.used.h);
+ let x = aligns.x.resolve(size.w - frame.size.w);
+ let y = before + ruler.resolve(size.h - self.used.h);
let pos = Point::new(x, y);
before += frame.size.h;