PDA

View Full Version : Overlay Animation Bug 1.1



hitman01
28 Mar 2011, 11:35 AM
When adding showAnimation to overlays and clicking outside of the modal, the modal hides but the overlay stays and the application becomes unresponsive (no javascript errors).

To replicate the bug, do the following using Sencha Touch 1.1:

Using the overlays example, add showAnimation. Once, the modal opens up try scrolling sideways (left to right) and then click outside of the modal to close it. The modal hides but the overlay remains.

If it doesnt happen the first time do it a few time.

var overlay = new Ext.Panel({
floating: true,
modal: true,
centered: false,
width: Ext.is.Phone ? 260 : 400,
height: Ext.is.Phone ? 220 : 400,
styleHtmlContent: true,
dockedItems: overlayTb,
scroll: 'vertical',
contentEl: 'lipsum',
cls: 'htmlcontent',

// add this
showAnimation: {
type: 'fade',
duration: 400,
}

});

hitman01
28 Mar 2011, 1:03 PM
I pinpointed the problem.

Its on line 13392, its something new added in 1.0.

if (this.running[el.id] === undefined) {
return;
}