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.
This commit is contained in:
Benjamin Otte 2021-11-20 05:56:14 +01:00
parent 6c94835f5d
commit 244ddea0ea

View File

@ -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
{