From 9db73767d94a7ed92a97b0a891dcb787906c9e01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 22 Feb 2013 00:02:49 +0100 Subject: [PATCH] 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. --- js/ui/appDisplay.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index e3c3b9208..4ee94cf4a 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -175,6 +175,7 @@ const AllView = new Lang.Class({ y_fill: false, y_align: St.Align.START, x_expand: true, + y_expand: true, style_class: 'vfade' }); this.actor.add_actor(box); this.actor.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC); @@ -309,6 +310,7 @@ const FrequentView = new Lang.Class({ y_fill: false, y_align: St.Align.START, x_expand: true, + y_expand: true, reactive: false, style_class: 'frequent-apps vfade' }); this.actor.add_actor(box); @@ -373,10 +375,7 @@ const AppDisplay = new Lang.Class({ this._viewStack = new St.Widget({ layout_manager: new Clutter.BinLayout(), x_expand: true, y_expand: true }); - let bin = new St.Bin({ child: this._viewStack, - clip_to_allocation: true, - x_fill: true, y_fill: true }); - this.actor.add(bin, { expand: true }); + this.actor.add(this._viewStack, { expand: true }); let layout = new Clutter.BoxLayout({ homogeneous: true }); this._controls = new St.Widget({ style_class: 'app-view-controls',