Use St.Group where appropriate
There are some places in the code where we use both fixed positioning and CSS. Currently we use either a combination of ClutterGroup and StBin, or we uses StBoxLayout with fixed positioning. Replace those with the new StGroup container. https://bugzilla.gnome.org/show_bug.cgi?id=613907
This commit is contained in:
@ -174,7 +174,7 @@ function Overview() {
|
||||
|
||||
Overview.prototype = {
|
||||
_init : function() {
|
||||
this._group = new St.BoxLayout({ style_class: 'overview' });
|
||||
this._group = new St.Group({ style_class: 'overview' });
|
||||
this._group._delegate = this;
|
||||
|
||||
this.infoBar = new InfoBar();
|
||||
@ -268,6 +268,7 @@ Overview.prototype = {
|
||||
this._recalculateGridSizes();
|
||||
|
||||
this._group.set_position(primary.x, primary.y);
|
||||
this._group.set_size(primary.width, primary.height);
|
||||
|
||||
let contentY = Panel.PANEL_HEIGHT;
|
||||
let contentHeight = primary.height - contentY;
|
||||
|
Reference in New Issue
Block a user