[gnome-shell] calendar: Fix grid non-US week layouts
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] calendar: Fix grid non-US week layouts
- Date: Mon, 31 Jan 2011 20:57:17 +0000 (UTC)
commit 25434e42d0d933f12fcc2a6436407218e5496268
Author: David Zeuthen <davidz redhat com>
Date: Mon Jan 31 15:53:56 2011 -0500
calendar: Fix grid non-US week layouts
http://people.freedesktop.org/~david/calendar-grid-non-US-locale-collapse-bug.png
This was discovered when working on bug 641049:
https://bugzilla.gnome.org/show_bug.cgi?id=641049
Signed-off-by: David Zeuthen <davidz redhat com>
js/ui/calendar.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index dcea566..09a0553 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -578,7 +578,7 @@ Calendar.prototype = {
// Hack used in lieu of border-collapse - see gnome-shell.css
if (row == 2)
styleClass = 'calendar-day-top ' + styleClass;
- if (iter.getDay() == 0)
+ if (iter.getDay() == this._weekStart)
styleClass = 'calendar-day-left ' + styleClass;
if (_sameDay(now, iter))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]