summaryrefslogtreecommitdiffstats
path: root/source/widgets/box.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/widgets/box.c')
-rw-r--r--source/widgets/box.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/widgets/box.c b/source/widgets/box.c
index 42f95f4e..8bf531c9 100644
--- a/source/widgets/box.c
+++ b/source/widgets/box.c
@@ -225,12 +225,13 @@ static void hori_calculate_size ( box *b )
if ( b->max_size > ( rem_width ) ) {
b->max_size = rem_width;
g_debug ( "Widgets to large (width) for box: %d %d", b->max_size, b->widget.w );
- return;
+ //return;
}
if ( active_widgets > 0 ) {
int left = widget_padding_get_left ( WIDGET ( b ) );
double rem = rem_width - b->max_size;
int index = 0;
+ if ( rem < 0 ) rem = 0;
for ( GList *iter = g_list_first ( b->children ); iter != NULL; iter = g_list_next ( iter ) ) {
widget * child = (widget *) iter->data;
if ( child->enabled == FALSE ) {