summaryrefslogtreecommitdiff
path: root/gtk/gtkvpaned.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkvpaned.c')
-rw-r--r--gtk/gtkvpaned.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkvpaned.c b/gtk/gtkvpaned.c
index 6db823ff6..3672b6704 100644
--- a/gtk/gtkvpaned.c
+++ b/gtk/gtkvpaned.c
@@ -149,6 +149,10 @@ gtk_vpaned_size_allocate (GtkWidget *widget,
else
paned->child1_size = 0;
}
+ else
+ paned->child1_size = CLAMP (paned->child1_size, 0,
+ allocation->height - paned->gutter_size
+ - 2 * GTK_CONTAINER (paned)->border_width);
/* Move the handle before the children so we don't get extra expose events */