Bug 369689: In day and week views, events ending at midnight cannot be resized to a smaller size using the mouse, patch by Luc Mousseau, r=mickey, ui-r=christian
git-svn-id: svn://10.0.0.236/trunk@229321 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1107,8 +1107,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
var dragDay = col.mDate;
|
||||
|
||||
if (dragState.dragType == "modify-start" ||
|
||||
dragState.dragType == "new") {
|
||||
newStart.day = dragDay.day;
|
||||
newStart.month = dragDay.month;
|
||||
newStart.year = dragDay.year;
|
||||
newStart.hour = 0;
|
||||
newStart.minute = dragState.startMin + col.mStartMin;
|
||||
newStart.normalize();
|
||||
@@ -1116,6 +1121,9 @@
|
||||
|
||||
if (dragState.dragType == "modify-end" ||
|
||||
dragState.dragType == "new") {
|
||||
newEnd.day = dragDay.day;
|
||||
newEnd.month = dragDay.month;
|
||||
newEnd.year = dragDay.year;
|
||||
newEnd.hour = 0;
|
||||
newEnd.minute = dragState.endMin + col.mStartMin;
|
||||
newEnd.normalize();
|
||||
|
||||
Reference in New Issue
Block a user