From 244ddea0ea84f9f6b4306c2981f897fa374c2af5 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 20 Nov 2021 05:56:14 +0100 Subject: [PATCH] paned: Always query at least min size For shrinking children, we would not make sure of this and just throw the current size at them. --- gtk/gtkpaned.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index e4d8ff8124..aebfd91ac7 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -1184,6 +1184,11 @@ gtk_paned_get_preferred_size_for_opposite_orientation (GtkWidget *widget, NULL, NULL, &for_start_child); for_end_child = size - for_start_child - handle_size; + + if (paned->shrink_start_child) + for_start_child = MAX (start_child_req, for_start_child); + if (paned->shrink_end_child) + for_end_child = MAX (end_child_req, for_end_child); } else {