appDisplay: Remove unnecessary StBin from hierarchy
The bin is used to top-align views that don't fill the entire height, but the same can be achieved by setting appropriate expand properties.
This commit is contained in:
parent
c562245c16
commit
9db73767d9
@ -175,6 +175,7 @@ const AllView = new Lang.Class({
|
|||||||
y_fill: false,
|
y_fill: false,
|
||||||
y_align: St.Align.START,
|
y_align: St.Align.START,
|
||||||
x_expand: true,
|
x_expand: true,
|
||||||
|
y_expand: true,
|
||||||
style_class: 'vfade' });
|
style_class: 'vfade' });
|
||||||
this.actor.add_actor(box);
|
this.actor.add_actor(box);
|
||||||
this.actor.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
|
this.actor.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
|
||||||
@ -309,6 +310,7 @@ const FrequentView = new Lang.Class({
|
|||||||
y_fill: false,
|
y_fill: false,
|
||||||
y_align: St.Align.START,
|
y_align: St.Align.START,
|
||||||
x_expand: true,
|
x_expand: true,
|
||||||
|
y_expand: true,
|
||||||
reactive: false,
|
reactive: false,
|
||||||
style_class: 'frequent-apps vfade' });
|
style_class: 'frequent-apps vfade' });
|
||||||
this.actor.add_actor(box);
|
this.actor.add_actor(box);
|
||||||
@ -373,10 +375,7 @@ const AppDisplay = new Lang.Class({
|
|||||||
|
|
||||||
this._viewStack = new St.Widget({ layout_manager: new Clutter.BinLayout(),
|
this._viewStack = new St.Widget({ layout_manager: new Clutter.BinLayout(),
|
||||||
x_expand: true, y_expand: true });
|
x_expand: true, y_expand: true });
|
||||||
let bin = new St.Bin({ child: this._viewStack,
|
this.actor.add(this._viewStack, { expand: true });
|
||||||
clip_to_allocation: true,
|
|
||||||
x_fill: true, y_fill: true });
|
|
||||||
this.actor.add(bin, { expand: true });
|
|
||||||
|
|
||||||
let layout = new Clutter.BoxLayout({ homogeneous: true });
|
let layout = new Clutter.BoxLayout({ homogeneous: true });
|
||||||
this._controls = new St.Widget({ style_class: 'app-view-controls',
|
this._controls = new St.Widget({ style_class: 'app-view-controls',
|
||||||
|
Loading…
Reference in New Issue
Block a user