mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
sizegroup: Always at least use widget's size
When widgets were hidden, they were otherwise assigned a 0 size.
This commit is contained in:
parent
4067a45aff
commit
0306278145
@ -746,6 +746,11 @@ compute_dimension (GtkWidget *widget,
|
||||
min_dimension = *minimum;
|
||||
nat_dimension = *natural;
|
||||
}
|
||||
else if (!gtk_widget_get_mapped (tmp_widget) && priv->ignore_hidden)
|
||||
{
|
||||
min_dimension = 0;
|
||||
nat_dimension = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (mode == GTK_SIZE_GROUP_HORIZONTAL)
|
||||
@ -754,11 +759,8 @@ compute_dimension (GtkWidget *widget,
|
||||
gtk_widget_get_preferred_height (tmp_widget, &min_dimension, &nat_dimension);
|
||||
}
|
||||
|
||||
if (gtk_widget_get_mapped (tmp_widget) || !priv->ignore_hidden)
|
||||
{
|
||||
min_result = MAX (min_result, min_dimension);
|
||||
nat_result = MAX (nat_result, nat_dimension);
|
||||
}
|
||||
min_result = MAX (min_result, min_dimension);
|
||||
nat_result = MAX (nat_result, nat_dimension);
|
||||
|
||||
tmp_list = tmp_list->next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user