diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-01-03 12:18:11 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-01-03 12:18:11 +0100 |
commit | f82129aab87467d93c31340ebce225ff842a59d7 (patch) | |
tree | 65712b02eb506e40dca49fd8083dc026e288931c /source/widgets/box.c | |
parent | a41d6c4ab46d54ffc89f9dcdef236931051af0e4 (diff) |
Box: static widget should get their desired height.
Diffstat (limited to 'source/widgets/box.c')
-rw-r--r-- | source/widgets/box.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/widgets/box.c b/source/widgets/box.c index d113c2e0..f36634a3 100644 --- a/source/widgets/box.c +++ b/source/widgets/box.c @@ -91,7 +91,6 @@ static int box_get_desired_height ( widget *wid ) } } height += widget_padding_get_padding_height ( wid ); - return height; } @@ -105,7 +104,7 @@ static void vert_calculate_size ( box *b ) for ( GList *iter = g_list_first ( b->children ); iter != NULL; iter = g_list_next ( iter ) ) { widget * child = (widget *) iter->data; if ( child->enabled && child->expand == FALSE ){ - widget_resize ( child, rem_width, child->h ); + widget_resize ( child, rem_width, widget_get_desired_height (child) ); } } b->max_size = 0; |