summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2009-10-07 18:52:18 (GMT)
committerOwen W. Taylor <otaylor@fishsoup.net>2009-10-07 18:52:49 (GMT)
commit4c6f770dea7b06c5340778c70726949613e20327 (patch)
treeeddb4033bbe83b361a4d0b5cdac9c007e8198a6e
parentc0b01c021007e8b1a0ba53ab2c66c0127a02ec6b (diff)
downloadgnome-shell-4c6f770dea7b06c5340778c70726949613e20327.tar.gz
gnome-shell-4c6f770dea7b06c5340778c70726949613e20327.tar.xz
Fix positioning of the Calendar on multihead
Parens were in the wrong place, resulting in the calendar not being properly centered on the primary monitor. https://bugzilla.gnome.org/show_bug.cgi?id=597078
-rw-r--r--js/ui/panel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/ui/panel.js b/js/ui/panel.js
index becd844..7917e34 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -546,7 +546,7 @@ CalendarPopup.prototype = {
// Reset the calendar to today's date
this.calendar.setDate(new Date());
- this.actor.x = Math.round((panelActor.x + panelActor.width - this.actor.width) / 2);
+ this.actor.x = Math.round(panelActor.x + (panelActor.width - this.actor.width) / 2);
this.actor.lower(panelActor);
this.actor.show();
Tweener.addTween(this.actor,