summaryrefslogtreecommitdiffstats
path: root/source/widgets/box.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2020-05-13 17:17:15 +0200
committerDave Davenport <qball@gmpclient.org>2020-05-13 17:17:15 +0200
commit191f49dbeae49b0e34b2662835b92739f4ddfba3 (patch)
tree4ad780dfabbb42f8c367537229352fe45333458b /source/widgets/box.c
parentf2b6cf6b3cdc3211ec17634358765fdb7898dcf1 (diff)
[LISTVIEW] Support more customization in element.
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 ) {