[gnome-shell] Use a St.Bin rather than a St.BoxLayout for calendar popup
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Use a St.Bin rather than a St.BoxLayout for calendar popup
- Date: Sun, 9 May 2010 20:37:45 +0000 (UTC)
commit 5111edb80b8714f4cf176f1778541d5766242d07
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Sat May 8 12:16:54 2010 -0400
Use a St.Bin rather than a St.BoxLayout for calendar popup
Using a horizontal St.BoxLayout for calendar container forces
width-for-height layout on the St.Table child. Since St.Table
is naturally width-for-height, this can trigger bugs and is,
at best, a bit ineffecient. Use a St.Bin instead since we don't
need any BoxLayout features.
https://bugzilla.gnome.org/show_bug.cgi?id=618104
js/ui/panel.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 34f5696..632016b 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -714,10 +714,10 @@ CalendarPopup.prototype = {
_init: function() {
let panelActor = Main.panel.actor;
- this.actor = new St.BoxLayout({ name: 'calendarPopup' });
+ this.actor = new St.Bin({ name: 'calendarPopup' });
this.calendar = new Calendar.Calendar();
- this.actor.add(this.calendar.actor);
+ this.actor.set_child(this.calendar.actor);
Main.chrome.addActor(this.actor, { visibleInOverview: true,
affectsStruts: false });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]