PDA

View Full Version : animateTarget doesn't work when I click my Cancel button



darkhorni
5 Sep 2012, 11:50 PM
I have animateTarget (http://docs.sencha.com/ext-js/4-1/#!/api/Ext.window.Window-cfg-animateTarget) property and it doesn't work when I click the

{
text : 'Cancel',
handler : function() {
Ext.getCmp('MyWindow').destroy();
}
}
What can I do?

Farish
5 Sep 2012, 11:58 PM
it could be because of the destroy. try using close instead and see what happens.

window.close();