mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Alignments with variable row heights almost works perfectly.
However, I'm going to have to figure a way to store the alignments for rows separately, this may involve using a separate GtkCellAreaContext for each row, unfortunately.
This commit is contained in:
parent
e51592c0b3
commit
2d5eadb7f9
@ -2682,8 +2682,6 @@ gtk_icon_view_layout_single_row (GtkIconView *icon_view,
|
||||
|
||||
current_width += item->width;
|
||||
|
||||
max_height = MAX (max_height, item->height);
|
||||
|
||||
if (items != first_item)
|
||||
{
|
||||
if ((icon_view->priv->columns <= 0 && current_width > allocation.width) ||
|
||||
@ -2691,6 +2689,8 @@ gtk_icon_view_layout_single_row (GtkIconView *icon_view,
|
||||
break;
|
||||
}
|
||||
|
||||
max_height = MAX (max_height, item->height);
|
||||
|
||||
current_width += icon_view->priv->column_spacing;
|
||||
|
||||
item->y = *y;
|
||||
|
Loading…
Reference in New Issue
Block a user