forked from AuroraMiddleware/gtk
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:
parent
6c94835f5d
commit
244ddea0ea
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user