mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 11:28:38 +00:00
bug 334724: remove weeks, not add, when browsing the monthview. r=dmose
This commit is contained in:
parent
67189af731
commit
c111cf88ce
@ -854,9 +854,14 @@
|
|||||||
|
|
||||||
// OK, so we're off by one week. We either need to add or subtract
|
// OK, so we're off by one week. We either need to add or subtract
|
||||||
// a row depending on whether the newDuration is positive or negative
|
// a row depending on whether the newDuration is positive or negative
|
||||||
if (!newDuration.isNegative) {
|
//
|
||||||
// The new month takes up an extra week, so we need to create
|
// at this point the following holds:
|
||||||
// a new row and fill it with day-boxes
|
// newDuration = duration of old view - duration of current view.
|
||||||
|
|
||||||
|
if (newDuration.isNegative) {
|
||||||
|
// newDuration is negative, which means that the duration of the old
|
||||||
|
// view was shorter. The new month takes up an extra week, so we
|
||||||
|
// need to create a new row and fill it with day-boxes
|
||||||
var newGridRow = createXULElement("row");
|
var newGridRow = createXULElement("row");
|
||||||
newGridRow.setAttribute("flex", "1");
|
newGridRow.setAttribute("flex", "1");
|
||||||
newGridRow.setAttribute("class", "calendar-month-view-grid-row");
|
newGridRow.setAttribute("class", "calendar-month-view-grid-row");
|
||||||
|
Loading…
Reference in New Issue
Block a user