Closed
Bug 566018
Opened 14 years ago
Closed 14 years ago
When dragging events that span 8 days, the drag shadow has a wrong length
Categories
(Calendar :: Calendar Frontend, defect)
Calendar
Calendar Frontend
Tracking
(Not tracked)
RESOLVED
FIXED
1.0b3
People
(Reporter: bv1578, Assigned: bv1578)
Details
Attachments
(1 file)
1.38 KB,
patch
|
Taraman
:
review+
|
Details | Diff | Splinter Review |
This bug occurs in multiweek/month views and in the all day events header in week view. It's a regression from patch for bug 476227. Steps to reproduce: 1. Create a new event that span multiple days with duration 8, 15, 22, ... days (if it's an all day event it has to take 7, 14, 21, ... days) e.g. from 1/5/2010 to 8/5/2010; 2. drag and drop the event in month view, in multiweek view or in week view if the event is an all day one. Actual results: the drag shadow take only the first day; for the all day events, the shadow doesn't appear at all. The final drop position is always correct.
Flags: wanted-calendar1.0?
When I wrote the patch for bug 476227, it seems I made a mistake when I calculated the length of the event. Is there a different way to extract the total days form a duration when they are multiple of 7?
Attachment #445436 -
Flags: review?(Mozilla)
Comment 2•14 years ago
|
||
Comment on attachment 445436 [details] [diff] [review] patch Patch works and looks good. >Is there a different way to extract the total days form a duration when they >are multiple of 7? Looking at [1], there is no way to directly get the number of days. You could add one, but I think everyone can just multiply weeks by 7 and also reading it in the code should be pretty clear. ;-) r=markus [1]: http://mxr.mozilla.org/comm-central/source/calendar/base/public/calIDuration.idl
Attachment #445436 -
Flags: review?(Mozilla) → review+
Keywords: checkin-needed
Comment 3•14 years ago
|
||
http://hg.mozilla.org/comm-central/rev/98cb9480df53
Updated•14 years ago
|
Flags: wanted-calendar1.0?
Target Milestone: --- → 1.0b3
Comment 4•14 years ago
|
||
Backported to comm-1.9.2 <http://hg.mozilla.org/releases/comm-1.9.2/rev/e5c10786714c> a=philipp
You need to log in
before you can comment on or make changes to this bug.
Description
•