summaryrefslogtreecommitdiff
path: root/src/layout/stack.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-05-17 15:00:29 +0200
committerLaurenz <laurmaedje@gmail.com>2021-05-17 15:00:29 +0200
commit1003d320d40aa46a0a3fba49b09425ead1b4b584 (patch)
tree388a529930e377c84dbd359faee79fc058aa7fe6 /src/layout/stack.rs
parentfbb823964f409c4c5d95f0a0a07e1eda70406c62 (diff)
Rename expand to fixed and switch to bools
Diffstat (limited to 'src/layout/stack.rs')
-rw-r--r--src/layout/stack.rs8
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 {