PDA

View Full Version : element.show() with animation?



andersonv1
28 Mar 2011, 2:31 AM
Hi I was trying to do element.show({type:'fade'});
http://dev.sencha.com/deploy/touch/docs/source/Element.html#method-Ext.Element-show

I hide the element in the beginning then try to show it. Shouldn't it show with animation? Currently it doesnt show with animation.

I am struggling with this, could anyone be kind enough to clarify this? thanks.

AndreaCammarata
28 Mar 2011, 6:44 AM
Hi andersonv1.
Are you trying to do this with Sencha Touch or Ext?

andersonv1
28 Mar 2011, 6:46 AM
sencha touch, does it make a difference?

AndreaCammarata
28 Mar 2011, 8:15 AM
sencha touch, does it make a difference?

Yes, it change ;)
Try to show your panel / element in this way:



element.show(Ext.anims.fade);
And you will see your panel showing with fade effect.
Hope this helps.