diff options
Diffstat (limited to 'gtk/gtkhbox.c')
-rw-r--r-- | gtk/gtkhbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkhbox.c b/gtk/gtkhbox.c index eb46104d65..2d9fc0ec57 100644 --- a/gtk/gtkhbox.c +++ b/gtk/gtkhbox.c @@ -198,7 +198,7 @@ gtk_hbox_size_allocate (GtkWidget *widget, x = allocation->x + GTK_CONTAINER (box)->border_width; child_allocation.y = allocation->y + GTK_CONTAINER (box)->border_width; - child_allocation.height = MAX (0, allocation->height - GTK_CONTAINER (box)->border_width * 2); + child_allocation.height = MAX (1, allocation->height - GTK_CONTAINER (box)->border_width * 2); children = box->children; while (children) @@ -236,7 +236,7 @@ gtk_hbox_size_allocate (GtkWidget *widget, if (child->fill) { - child_allocation.width = MAX (0, child_width - child->padding * 2); + child_allocation.width = MAX (1, child_width - child->padding * 2); child_allocation.x = x + child->padding; } else @@ -289,7 +289,7 @@ gtk_hbox_size_allocate (GtkWidget *widget, if (child->fill) { - child_allocation.width = MAX (0, child_width - child->padding * 2); + child_allocation.width = MAX (1, child_width - child->padding * 2); child_allocation.x = x + child->padding - child_width; } else |