appDisplay: Remove _updateAdjustment
Provided that PaginatedIconGrid's height request is correct, we can rely on StBoxLayout to update the adjustment correctly.
This commit is contained in:
parent
39c4fa1bf0
commit
fd8def705d
@ -505,11 +505,6 @@ const AllView = new Lang.Class({
|
|||||||
this.goToPage(itemPage);
|
this.goToPage(itemPage);
|
||||||
},
|
},
|
||||||
|
|
||||||
_updateAdjustment: function(availHeight) {
|
|
||||||
this._adjustment.page_size = availHeight;
|
|
||||||
this._adjustment.upper = this._stack.height;
|
|
||||||
},
|
|
||||||
|
|
||||||
_updateIconOpacities: function(folderOpen) {
|
_updateIconOpacities: function(folderOpen) {
|
||||||
for (let id in this._items) {
|
for (let id in this._items) {
|
||||||
let params, opacity;
|
let params, opacity;
|
||||||
@ -538,8 +533,6 @@ const AllView = new Lang.Class({
|
|||||||
let availHeight = box.y2 - box.y1;
|
let availHeight = box.y2 - box.y1;
|
||||||
let oldNPages = this._grid.nPages();
|
let oldNPages = this._grid.nPages();
|
||||||
|
|
||||||
this._updateAdjustment(availHeight);
|
|
||||||
|
|
||||||
this._grid.adaptToSize(availWidth, availHeight);
|
this._grid.adaptToSize(availWidth, availHeight);
|
||||||
|
|
||||||
let fadeOffset = Math.min(this._grid.topPadding,
|
let fadeOffset = Math.min(this._grid.topPadding,
|
||||||
|
Loading…
Reference in New Issue
Block a user