[gnome-shell] Fix positioning of the Calendar on multihead
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] Fix positioning of the Calendar on multihead
- Date: Wed, 7 Oct 2009 18:53:41 +0000 (UTC)
commit 4c6f770dea7b06c5340778c70726949613e20327
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Wed Oct 7 14:52:18 2009 -0400
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 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]