mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 08:20:36 +00:00
Merge branch 'fix-columnviewcolumn-visibility' into 'main'
columnview: check column visibility when measuring See merge request GNOME/gtk!7452
This commit is contained in:
commit
f36618f02a
@ -1845,9 +1845,13 @@ gtk_column_view_measure_across (GtkColumnView *self,
|
||||
int col_min, col_nat;
|
||||
|
||||
column = g_list_model_get_item (G_LIST_MODEL (self->columns), i);
|
||||
gtk_column_view_column_measure (column, &col_min, &col_nat);
|
||||
min += col_min;
|
||||
nat += col_nat;
|
||||
|
||||
if (gtk_column_view_column_get_visible (column))
|
||||
{
|
||||
gtk_column_view_column_measure (column, &col_min, &col_nat);
|
||||
min += col_min;
|
||||
nat += col_nat;
|
||||
}
|
||||
|
||||
g_object_unref (column);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user