[gnome-shell] legacyTray: Style the slider's child, not the slider
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] legacyTray: Style the slider's child, not the slider
- Date: Thu, 3 Mar 2016 16:21:10 +0000 (UTC)
commit be483c4137351ae00199911ab6808a61b5c5b613
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Mar 3 15:55:12 2016 +0100
legacyTray: Style the slider's child, not the slider
This avoids jiggling when showing/hiding the tray. Based on a
suggestion from maxnevesnunes gmail com in bug 750022.
https://bugzilla.gnome.org/show_bug.cgi?id=747957
js/ui/legacyTray.js | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/legacyTray.js b/js/ui/legacyTray.js
index 39b3dac..4fc2f0f 100644
--- a/js/ui/legacyTray.js
+++ b/js/ui/legacyTray.js
@@ -50,15 +50,14 @@ const LegacyTray = new Lang.Class({
this._slideLayout.translationX = 0;
this._slideLayout.slideDirection = OverviewControls.SlideDirection.LEFT;
- this._slider = new St.Widget({ style_class: 'legacy-tray',
- x_expand: true, y_expand: true,
+ this._slider = new St.Widget({ x_expand: true, y_expand: true,
x_align: Clutter.ActorAlign.START,
y_align: Clutter.ActorAlign.END,
layout_manager: this._slideLayout });
this.actor.add_actor(this._slider);
this._slider.connect('notify::allocation', Lang.bind(this, this._syncBarrier));
- this._box = new St.BoxLayout();
+ this._box = new St.BoxLayout({ style_class: 'legacy-tray' });
this._slider.add_actor(this._box);
this._concealHandle = new St.Button({ style_class: 'legacy-tray-handle',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]