From c2967a5839fa2511bd16a5c4c1c5ba26be0401f0 Mon Sep 17 00:00:00 2001 From: "jminta%gmail.com" Date: Fri, 21 Jul 2006 00:50:07 +0000 Subject: [PATCH] Bug 343187 DnD month view: Drop shadow for events spanning multiple days is not correct, r=dmose --- calendar/base/content/calendar-month-view.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/calendar/base/content/calendar-month-view.xml b/calendar/base/content/calendar-month-view.xml index 7f07eee62c1..22176f9ad09 100644 --- a/calendar/base/content/calendar-month-view.xml +++ b/calendar/base/content/calendar-month-view.xml @@ -446,9 +446,6 @@ shadowStart.day -= this.monthView.mShadowIndex; shadowStart.normalize(); for (var i = 0; i < this.monthView.mShadowLength; i++) { - shadowStart.day += i; - shadowStart.normalize(); - var dropbox = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "box"); dropbox.setAttribute("dropbox", "true"); dropbox.setAttribute("flex", "1"); @@ -456,6 +453,9 @@ var box = this.monthView.findBoxForDate(shadowStart).box; box.dayitems.insertBefore(dropbox, box.dayitems.firstChild); this.monthView.mDropShadows.push(dropbox); + + shadowStart.day += 1; + shadowStart.normalize(); } ]]>