summaryrefslogtreecommitdiff
path: root/src/layout/fixed.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-13 13:24:33 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-13 13:24:33 +0200
commit8680fcd4903b451909a5932e8b948a68c9aacb16 (patch)
tree37a195fc77ecee3ec7f17639079f4c7652cde7a4 /src/layout/fixed.rs
parent22697f0c0c858bc013ec5c7d8b3ea50f000246dd (diff)
Rename geometric eval and apply to resolve ✏
Diffstat (limited to 'src/layout/fixed.rs')
-rw-r--r--src/layout/fixed.rs4
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);