diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-11-23 00:09:46 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-11-23 00:09:46 +0100 |
| commit | 833166c3bf25513e977d85b050e3c985bb7465b5 (patch) | |
| tree | bae23f65a14477f03384d41bda3706334565a41d | |
| parent | 6ff60bc3688d8ae2caa3ea18bc23963d25ab5daa (diff) | |
Fix bugs 🚧
| -rw-r--r-- | src/layout/stacked.rs | 2 | ||||
| -rw-r--r-- | tests/render.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/stacked.rs b/src/layout/stacked.rs index a6999dee..2e128a5f 100644 --- a/src/layout/stacked.rs +++ b/src/layout/stacked.rs @@ -255,7 +255,7 @@ impl StackLayouter { let new_usable = self.ctx.axes.specialize(Size2D { x: self.sub.usable.x, - y: self.sub.usable.y - self.sub.dimensions.y, + y: self.sub.usable.y - self.sub.dimensions.y - self.sub.space.soft_or_zero(), }); (new_origin, new_usable) diff --git a/tests/render.py b/tests/render.py index 19f06f2b..98b45972 100644 --- a/tests/render.py +++ b/tests/render.py @@ -79,6 +79,7 @@ class MultiboxRenderer: x = 10 y += 10 + row_height i = 0 + row_height = 0 height = y if i != 0: |
