panel: Align the arrows together in the status menus
To align the arrows, we need to allocate panel buttons the full height of the tray. Fix up all of the panel buttons to support this, and align the arrows in the middle. https://bugzilla.gnome.org/show_bug.cgi?id=705845
This commit is contained in:
@ -86,13 +86,8 @@ const ButtonBox = new Lang.Class({
|
||||
childBox.x2 = availWidth - this._minHPadding;
|
||||
}
|
||||
|
||||
if (natHeight <= availHeight) {
|
||||
childBox.y1 = Math.floor((availHeight - natHeight) / 2);
|
||||
childBox.y2 = childBox.y1 + natHeight;
|
||||
} else {
|
||||
childBox.y1 = 0;
|
||||
childBox.y2 = availHeight;
|
||||
}
|
||||
childBox.y1 = 0;
|
||||
childBox.y2 = availHeight;
|
||||
|
||||
child.allocate(childBox, flags);
|
||||
},
|
||||
|
Reference in New Issue
Block a user