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 15:58:36 +0100
changeset 19403 688071119edd3088d5c0c7ce62216a01a97ea9e8
parent 19402 4dc8b408b032c23221e04d3db84eab871c4fc052
child 19404 24ae86940cfe4f080bf92908c3d666b3b50284e8
push idunknown
push userunknown
push dateunknown
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>