IconGrid: calculate icon size only once
This commit is contained in:
parent
32240df141
commit
75c2a723d9
@ -530,8 +530,8 @@ const IconGrid = new Lang.Class({
|
|||||||
|
|
||||||
// Note that this is ICON_SIZE as used by BaseIcon, not elsewhere in IconGrid; it's a bit messed up
|
// Note that this is ICON_SIZE as used by BaseIcon, not elsewhere in IconGrid; it's a bit messed up
|
||||||
_updateChildrenScale: function(scale) {
|
_updateChildrenScale: function(scale) {
|
||||||
|
let newIconSize = Math.floor(ICON_SIZE * scale);
|
||||||
for (let i in this._items) {
|
for (let i in this._items) {
|
||||||
let newIconSize = Math.floor(ICON_SIZE * scale);
|
|
||||||
this._items[i].icon.setIconSize(newIconSize);
|
this._items[i].icon.setIconSize(newIconSize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user