mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
Fix misuse of ShellGenericContainerAllocation in two places
This commit is contained in:
parent
e3be74a31a
commit
df48e9d1c0
2 changed files with 4 additions and 4 deletions
|
|
@ -512,7 +512,7 @@ SwitcherList.prototype = {
|
|||
|
||||
let totalSpacing = this._list.spacing * (this._items.length - 1);
|
||||
alloc.min_size = this._items.length * maxChildMin + separatorWidth + totalSpacing;
|
||||
alloc.nat_size = this._items.length * maxChildNat + separatorWidth + totalSpacing;
|
||||
alloc.natural_size = this._items.length * maxChildNat + separatorWidth + totalSpacing;
|
||||
},
|
||||
|
||||
_getPreferredHeight: function (actor, forWidth, alloc) {
|
||||
|
|
@ -532,7 +532,7 @@ SwitcherList.prototype = {
|
|||
}
|
||||
|
||||
alloc.min_size = maxChildMin;
|
||||
alloc.nat_size = maxChildNat;
|
||||
alloc.natural_size = maxChildNat;
|
||||
},
|
||||
|
||||
_allocate: function (actor, box, flags) {
|
||||
|
|
|
|||
|
|
@ -747,7 +747,7 @@ SingleView.prototype = {
|
|||
width = children[i].x + children[i].width;
|
||||
}
|
||||
alloc.min_size = width;
|
||||
alloc.nat_size = width;
|
||||
alloc.natural_size = width;
|
||||
}));
|
||||
this._indicatorsPanel.connect('get-preferred-height', Lang.bind(this, function (actor, fw, alloc) {
|
||||
let children = actor.get_children();
|
||||
|
|
@ -755,7 +755,7 @@ SingleView.prototype = {
|
|||
if (children.length)
|
||||
height = children[0].height;
|
||||
alloc.min_size = height;
|
||||
alloc.nat_size = height;
|
||||
alloc.natural_size = height;
|
||||
}));
|
||||
this._indicatorsPanel.connect('allocate', Lang.bind(this, function (actor, box, flags) {
|
||||
let children = actor.get_children();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue