diff options
Diffstat (limited to 'src/layout/stack.rs')
| -rw-r--r-- | src/layout/stack.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/layout/stack.rs b/src/layout/stack.rs index b69936ba..a73abeeb 100644 --- a/src/layout/stack.rs +++ b/src/layout/stack.rs @@ -104,12 +104,12 @@ impl StackLayouter { fn finish_area(&mut self) { let full_size = { - let Areas { current, full, expand, .. } = self.areas; - let used = self.size.switch(self.main).to_size(); + let Areas { current, full, fixed, .. } = self.areas; + let used = self.size.switch(self.main).to_size(); let mut size = Size::new( - expand.horizontal.resolve(used.width, full.width), - expand.vertical.resolve(used.height, full.height), + if fixed.horizontal { full.width } else { used.width }, + if fixed.vertical { full.height } else { used.height }, ); if let Some(aspect) = self.areas.aspect { |
