mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-06 00:10:25 +00:00
use .compare the right way, to make non-conflicting events show up in the
same column. bug 306314, r=jminta
This commit is contained in:
parent
6435df665d
commit
e64a2bc4cb
@ -887,9 +887,11 @@ CalendarView.prototype.setDrawProperties = function calView_setDrawProperties( d
|
||||
//update vars for next loop
|
||||
if( !(eventStartListIndex in dayEventStartList) || dayEventStartList[eventStartListIndex] == null )
|
||||
done = true;
|
||||
else
|
||||
nextEventIsStarting = dayEventStartList[eventStartListIndex].start
|
||||
else {
|
||||
var compResult = dayEventStartList[eventStartListIndex].start
|
||||
.compare(dayEventEndList[eventEndListIndex].end);
|
||||
nextEventIsStarting = compResult < 0 ? true : false;
|
||||
}
|
||||
}
|
||||
// set totalSlotCount for the last contiguous group of events
|
||||
for ( i = groupStartIndex; i < dayEventStartList.length; i++ )
|
||||
|
Loading…
Reference in New Issue
Block a user