diff options
Diffstat (limited to 'src/layout/fixed.rs')
| -rw-r--r-- | src/layout/fixed.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/fixed.rs b/src/layout/fixed.rs index 8a42a9d3..d0daa2ca 100644 --- a/src/layout/fixed.rs +++ b/src/layout/fixed.rs @@ -16,8 +16,8 @@ impl Layout for Fixed { fn layout(&self, ctx: &mut LayoutContext, areas: &Areas) -> Layouted { let Area { rem, full } = areas.current; let size = Size::new( - self.width.map(|w| w.eval(full.width)).unwrap_or(rem.width), - self.height.map(|h| h.eval(full.height)).unwrap_or(rem.height), + self.width.map(|w| w.resolve(full.width)).unwrap_or(rem.width), + self.height.map(|h| h.resolve(full.height)).unwrap_or(rem.height), ); let areas = Areas::once(size); |
