Closed Bug 343194 Opened 18 years ago Closed 18 years ago

DnD month view: Error if event is dragged out of displayed calendar date range

Categories

(Calendar :: Calendar Frontend, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ssitter, Assigned: jminta)

Details

Attachments

(1 file)

Fall out from Bug 312736:
DnD month view: Error if event is dragged out of displayed calendar date range

Steps to Reproduce:
0. Default settings, Sunday is first day of week
1. Switch to Month view, e.g. June 2006
2. Create event at end of month view, 
   e.g. 2006-06-29 12:00 to 2006-06-30 12:00
3. Drag event to 2006-07-01, so that the second drop shadow would be
   displayed on 2006-07-02 (but that is out of displayed calendar date range)

Actual Results:
Drag and Drop stops working. Drop shadow is displayed on last position.
JavaScript console shows:

    Error: this.monthView.findBoxForDate(shadowStart) has no properties
    Source File: chrome://calendar/content/calendar-month-view.xml
    Line: 458

Same results when doing that steps at begin date of calendar view.

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060629
Sunbird/0.3a2+ (my own trunk build)
Attached patch check for box — — Splinter Review
Patch checks to see whether we actually get a box back from findBoxForDate.
Assignee: base → jminta
Status: NEW → ASSIGNED
Attachment #227699 - Flags: first-review?(dmose)
Comment on attachment 227699 [details] [diff] [review]
check for box

r=dmose
Attachment #227699 - Flags: first-review?(dmose) → first-review+
patch checked in with some merging fun.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Works fine with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060721 Calendar/0.3a2+ --> VERIFIED
Status: RESOLVED → VERIFIED
Component: Internal Components → Calendar Views
QA Contact: base → views
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: