diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-01-13 23:19:44 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-01-13 23:19:44 +0100 |
| commit | 272a4c228976466e9fa6cc100ad89f93dc5cc371 (patch) | |
| tree | ad02a6e57b07da061432d58ff0ca46d6777bdb97 /src/layout/fixed.rs | |
| parent | 1b53e27f270e3c040ee095573af9a5243980191a (diff) | |
Unbounded pages 🌌
Diffstat (limited to 'src/layout/fixed.rs')
| -rw-r--r-- | src/layout/fixed.rs | 6 |
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); |
