summaryrefslogtreecommitdiff
path: root/src/layout/mod.rs
diff options
context:
space:
mode:
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),
}