iconGrid: Dynamically adjust spacing based on columnLimit

Adjust the spacing based on the available width when a columnLimit
is set to evenly place the icons.

https://bugzilla.gnome.org/show_bug.cgi?id=694215
This commit is contained in:
Adel Gadllah
2013-02-20 00:38:11 +01:00
parent b75fc2bde3
commit b922035d4f
2 changed files with 18 additions and 6 deletions

View File

@ -63,6 +63,9 @@ const AlphabeticalView = new Lang.Class({
this._grid = new IconGrid.IconGrid({ xAlign: St.Align.MIDDLE,
columnLimit: MAX_COLUMNS });
// Standard hack for ClutterBinLayout
this._grid.actor.x_expand = true;
this._items = {};
this._allItems = [];
},