summaryrefslogtreecommitdiff
path: root/src/layout/fixed.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-01-13 23:19:44 +0100
committerLaurenz <laurmaedje@gmail.com>2021-01-13 23:19:44 +0100
commit272a4c228976466e9fa6cc100ad89f93dc5cc371 (patch)
treead02a6e57b07da061432d58ff0ca46d6777bdb97 /src/layout/fixed.rs
parent1b53e27f270e3c040ee095573af9a5243980191a (diff)
Unbounded pages 🌌
Diffstat (limited to 'src/layout/fixed.rs')
-rw-r--r--src/layout/fixed.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/fixed.rs b/src/layout/fixed.rs
index cb69b178..60dbe4d6 100644
--- a/src/layout/fixed.rs
+++ b/src/layout/fixed.rs
@@ -14,10 +14,10 @@ pub struct NodeFixed {
impl Layout for NodeFixed {
fn layout(&self, ctx: &mut LayoutContext, areas: &Areas) -> Layouted {
- let Area { rem, full } = areas.current;
+ let Areas { current, full, .. } = areas;
let size = Size::new(
- self.width.map(|w| w.resolve(full.width)).unwrap_or(rem.width),
- self.height.map(|h| h.resolve(full.height)).unwrap_or(rem.height),
+ self.width.map(|w| w.resolve(full.width)).unwrap_or(current.width),
+ self.height.map(|h| h.resolve(full.height)).unwrap_or(current.height),
);
let areas = Areas::once(size);