iconGrid/iconGrid: Fill pages by default

Use the Clutter.ActorAlign.FILL alignment by default, which
expands the grid until max-row|column-spacing is hit. This
was the behavior we originally wanted for the icon grid, and
it's finally being realized.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1510>
This commit is contained in:
Georges Basile Stavracas Neto 2020-11-25 18:50:02 -03:00 committed by Marge Bot
parent 4ad32ab662
commit e667406984

View File

@ -1310,9 +1310,9 @@ var IconGrid = GObject.registerClass({
orientation: Clutter.Orientation.VERTICAL, orientation: Clutter.Orientation.VERTICAL,
columns_per_page: 6, columns_per_page: 6,
rows_per_page: 4, rows_per_page: 4,
page_halign: Clutter.ActorAlign.CENTER, page_halign: Clutter.ActorAlign.FILL,
page_padding: new Clutter.Margin(), page_padding: new Clutter.Margin(),
page_valign: Clutter.ActorAlign.CENTER, page_valign: Clutter.ActorAlign.FILL,
last_row_align: Clutter.ActorAlign.START, last_row_align: Clutter.ActorAlign.START,
column_spacing: 0, column_spacing: 0,
row_spacing: 0, row_spacing: 0,