diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-11-17 14:51:31 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-11-17 14:51:31 +0100 |
| commit | 4d0bdc4ca4cb5e8ca1a70b38a0fc0ec37d9e4857 (patch) | |
| tree | ce30d2b3d3709c2c248e3e8f31696d69c9db0f09 /src/layout/stacked.rs | |
| parent | 1f009b5b95cbc31fb0a05a7f72ee6f5f53ece19a (diff) | |
Axes updating for flex layouter 📐
Diffstat (limited to 'src/layout/stacked.rs')
| -rw-r--r-- | src/layout/stacked.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/stacked.rs b/src/layout/stacked.rs index 764b8325..77af6f38 100644 --- a/src/layout/stacked.rs +++ b/src/layout/stacked.rs @@ -150,7 +150,7 @@ impl StackLayouter { let factor = if self.ctx.axes.secondary.axis.is_positive() { 1 } else { -1 }; for (offset, layout_anchor, layout) in self.boxes.drain(..) { - let general_position = anchor - layout_anchor + Size2D::with_y(offset * factor); + let general_position = anchor - layout_anchor + Size2D::with_y(factor * offset); let position = start + self.ctx.axes.specialize(general_position); self.merged_actions.add_layout(position, layout); |
