summaryrefslogtreecommitdiff
path: root/src/layout/flex.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-12-01 19:18:06 +0100
committerLaurenz <laurmaedje@gmail.com>2019-12-01 19:18:38 +0100
commitace57c34206a13b4bc3885b944cc51e274f30b0f (patch)
tree2f1e1e8e4ac5c3867492d5a59c49045058e16123 /src/layout/flex.rs
parent5782b82770f6923677942c3b4e2bf4f7258e47d8 (diff)
First half of stack update 🌓
Diffstat (limited to 'src/layout/flex.rs')
-rw-r--r--src/layout/flex.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/flex.rs b/src/layout/flex.rs
index 96b2aa85..afca23ec 100644
--- a/src/layout/flex.rs
+++ b/src/layout/flex.rs
@@ -62,7 +62,7 @@ impl PartialLine {
pub struct FlexContext {
pub spaces: LayoutSpaces,
pub axes: LayoutAxes,
- pub expand: bool,
+ pub alignment: LayoutAlignment,
pub flex_spacing: Size,
}
@@ -110,7 +110,7 @@ impl FlexLayouter {
if !self.run_is_empty() {
self.finish_run()?;
}
- Ok(self.stack.add_space(space, kind))
+ Ok(self.stack.add_spacing(space, kind))
}
pub fn set_axes(&mut self, axes: LayoutAxes) {
@@ -179,7 +179,7 @@ impl FlexLayouter {
debug_render: false,
})?;
- self.stack.add_space(self.flex_spacing, SpaceKind::Independent);
+ self.stack.add_spacing(self.flex_spacing, SpaceKind::Independent);
let remaining = self.axes.specialize(Size2D {
x: self.part.usable