Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Calendar problem when layoutChildren

$
0
0
Hello,

there is a problem with the calendar widget, when the calendar resized.

We have SectionStack with 3 sections. The calendar is in the second section. Section 1 + 3 are closed, section 2 is open and shows some events in the calendar.

Now I open section 1 and call a filterData on the calendar, so that some events will disapear from the calendar. Then I close the first section.

Now I get a problem in Calendar::sizeEventWindow: (see screenshot CalendarBug)
"Uncaught TypeError: Cannot read property 'undefined' of null"

The problem is, that because poolEventWindows=true, the eventsWindows was not deleted, when the dataChanged.

layoutChildren iterate over all children of the canvas (here the weekView), but the not visible children have event=null.

Sie also the StackTrace in the attached files.

Thanks

Peter

Attached Images
File Type: png CalendarBug.png (13.3 KB)
File Type: png CalendarStackTrace.png (14.6 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles