mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 365639 Navigation in Multiweek view is faulty if 'Previous weeks to show' is not None. r=lilmatt, mvl
This commit is contained in:
parent
b0170abf77
commit
1de1278fca
@ -211,7 +211,8 @@
|
||||
var d1 = this.startDay.clone();
|
||||
var savedSelectedDay = this.selectedDay.clone();
|
||||
// aNumber only corresponds to the number of weeks to move
|
||||
d1.day += 7*aNumber;
|
||||
// make sure to compensate for previous weeks in view too
|
||||
d1.day += 7 * (aNumber + getPrefSafe("calendar.previousweeks.inview", 4));
|
||||
d1.normalize();
|
||||
this.goToDay(d1);
|
||||
var viewElement = document.getAnonymousElementByAttribute(this, "anonid", "view-element");
|
||||
|
Loading…
Reference in New Issue
Block a user