aboutsummaryrefslogtreecommitdiff
path: root/src/saffron_layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/saffron_layout.c')
-rw-r--r--src/saffron_layout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/saffron_layout.c b/src/saffron_layout.c
index 62c7de2..725537f 100644
--- a/src/saffron_layout.c
+++ b/src/saffron_layout.c
@@ -15,6 +15,8 @@ SaffronBox* saffron_box_new(SaffronOrientation orientation, SaffronHorizontalAli
saffron_widget_init((SaffronWidget*)box);
((SaffronWidget*)box)->type = SAFFRON_WIDGET_BOX;
+ ((SaffronWidget*)box)->w = width;
+ ((SaffronWidget*)box)->h = height;
box->orientation = orientation;
box->halign = halign;