From 4c6f770dea7b06c5340778c70726949613e20327 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Wed, 7 Oct 2009 14:52:18 -0400 Subject: [PATCH] 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 --- js/ui/panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/panel.js b/js/ui/panel.js index becd8446f..7917e34ed 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,