summaryrefslogtreecommitdiff
path: root/src/layout/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-10-14 21:04:12 +0200
committerLaurenz <laurmaedje@gmail.com>2019-10-14 21:04:12 +0200
commitc768b8b61f40ef2578d45badebe097e7a9db0be9 (patch)
treead1a7ad20a6d37a0beec3d4739163d2554ca7377 /src/layout/mod.rs
parent5e41672a91536c1f740bbc1630a6908adff57329 (diff)
Refactor stack and flex layouter ♻
Diffstat (limited to 'src/layout/mod.rs')
-rw-r--r--src/layout/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs
index abf140d6..b760ca1e 100644
--- a/src/layout/mod.rs
+++ b/src/layout/mod.rs
@@ -267,7 +267,7 @@ impl<'a, 'p> Layouter<'a, 'p> {
let boxed = layout.finish()?;
- self.stack_layouter.add_box(boxed)
+ self.stack_layouter.add(boxed)
}
/// Layout a function.
@@ -287,7 +287,7 @@ impl<'a, 'p> Layouter<'a, 'p> {
for command in commands {
match command {
Command::Layout(tree) => self.layout(tree)?,
- Command::Add(layout) => self.stack_layouter.add_box(layout)?,
+ Command::Add(layout) => self.stack_layouter.add(layout)?,
Command::AddMany(layouts) => self.stack_layouter.add_many(layouts)?,
Command::ToggleStyleClass(class) => self.style.to_mut().toggle_class(class),
}