[gnome-shell/wip/fmuellner/notification-redux+sass: 129/141] layout: Don't offset trayBox when panel is hidden
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/notification-redux+sass: 129/141] layout: Don't offset trayBox when panel is hidden
- Date: Thu, 19 Feb 2015 20:54:34 +0000 (UTC)
commit 86adc786e36a37b074553c59ad4b5cc534022ff6
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Feb 14 16:03:28 2015 +0100
layout: Don't offset trayBox when panel is hidden
The panel is not visible when in fullscreen, but critical notifications
may still be shown - having them pop out from where the panel would be
looks unpolished, so adjust the trayBox accordingly.
js/ui/layout.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index cd6d64e..5f4f3c8 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -292,6 +292,9 @@ const LayoutManager = new Lang.Class({
let trayConstraint = new MonitorConstraint({ primary: true, work_area: true });
this.trayBox.add_constraint(trayConstraint);
+ this.panelBox.bind_property('visible', trayConstraint, 'work-area',
+ GObject.BindingFlags.SYNC_CREATE);
+
this._loadBackground();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]