This is a migrated thread and some comments may be shown as answers.

Overlay bug with animation disabled

2 Answers 81 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 04 Feb 2013, 07:31 PM
I've got a setup similar to the one shown in this fiddle: http://jsfiddle.net/ryan_nauman/YWLtH/. A modal window is opened with some placeholder loading text and when some async completes I re-use the existing modal, show the real content, and open/recenter.

Strangely, when animation is disabled the overlay sticks around. It's interesting that if the first modal is closed the overlay is removed. Once the second one appears after the delay, the overlay isn't removed.

I stepped through this code a bunch and am puzzled by this logic:
shouldHideOverlay = options.modal && !modalWindows.length;
Anyways, this was the only strange thing I noticed. I'm not quite sure how animation plays into this bug.

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 05 Feb 2013, 12:46 PM
Hello Ryan,

You are initializing multiple Window instances on the same DOM element, which causes the problem. Please fix the algorithm.

Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ryan
Top achievements
Rank 1
answered on 05 Feb 2013, 01:47 PM
Ah I missed that. Replaced jQuery dialog with this. Thanks! I refactored and everthing works as expected now.
Tags
Window
Asked by
Ryan
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Ryan
Top achievements
Rank 1
Share this question
or