summaryrefslogtreecommitdiff
path: root/src/library/boxed.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-12-10 11:37:12 +0100
committerLaurenz <laurmaedje@gmail.com>2019-12-10 11:37:12 +0100
commit92586d3e6895f0895fb2c88abcdd5e7160482a5b (patch)
tree2af23968bbff7213d237e05ab78ef886491da852 /src/library/boxed.rs
parent7e980224354880cfda1797136a1ff886d6642662 (diff)
Progressing stack layouter 🚊
Diffstat (limited to 'src/library/boxed.rs')
-rw-r--r--src/library/boxed.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/boxed.rs b/src/library/boxed.rs
index d3d5b591..7c0ea0c6 100644
--- a/src/library/boxed.rs
+++ b/src/library/boxed.rs
@@ -11,7 +11,7 @@ function! {
parse(args, body, ctx) {
Boxed {
- body: parse!(expected: body, ctx),
+ body: parse!(optional: body, ctx).unwrap_or(SyntaxTree::new()),
map: ExtentMap::new(&mut args, false)?,
}
}
@@ -22,8 +22,8 @@ function! {
let space = &mut ctx.spaces[0];
self.map.apply_with(ctx.axes, |axis, p| {
let entity = match axis {
- Horizontal => { space.expand.0 = true; &mut space.dimensions.x },
- Vertical => { space.expand.1 = true; &mut space.dimensions.y },
+ Horizontal => { space.expand.horizontal = true; &mut space.dimensions.x },
+ Vertical => { space.expand.vertical = true; &mut space.dimensions.y },
};
*entity = p.concretize(*entity)