Bug 975157 - Day/week view: the off-time zone get shifted one hour later in the timebar when changing the "Day ends at" setting. r=markus a=philipp
authorDecathlon <bv1578@gmail.com>
Wed, 26 Feb 2014 16:08:32 +0100
changeset 17025 14e26bcb0f420a89797d2aa13470b4be21f2b9ce
parent 17024 1ac8ffefb3460d0f0017d5f6383515e47c4bb764
child 17026 1643851618ef17e40b137465ca29922901b7dd7c
push id1087
push userbv1578@gmail.com
push dateWed, 26 Feb 2014 15:10:16 +0000
treeherdercomm-beta@14e26bcb0f42 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkus, philipp
bugs975157
Bug 975157 - Day/week view: the off-time zone get shifted one hour later in the timebar when changing the "Day ends at" setting. r=markus a=philipp
calendar/base/content/calendar-multiday-view.xml
--- a/calendar/base/content/calendar-multiday-view.xml
+++ b/calendar/base/content/calendar-multiday-view.xml
@@ -51,17 +51,17 @@
               this.mDayEndHour = aDayEndHour;
               this.mDayStartHour = aDayStartHour;
 
               var topbox = document.getAnonymousElementByAttribute(this, "anonid", "topbox");
               if (topbox.childNodes.length) {
                   // This only needs to be done if the initial relayout has
                   // already happened, otherwise it will be done then.
                   for (var hour = this.mStartMin / 60; hour < this.mEndMin / 60; hour++) {
-                      if (hour < this.mDayStartHour || hour > this.mDayEndHour) {
+                      if (hour < this.mDayStartHour || hour >= this.mDayEndHour) {
                           topbox.childNodes[hour].setAttribute("off-time", "true");
                       } else {
                           topbox.childNodes[hour].removeAttribute("off-time");
                       }
                   }
               }
           }
         ]]></body>