PDA

View Full Version : update() with animation?



StevenInc
23 Nov 2010, 2:04 PM
Is is possible to animate the height of a div using update?
Right now I am getting a reference to a div inside a template and I am populating it with an unknown number of characters via ajax. The div resizes instantly on the update() call.

Can I animate this like the jquery slideDown() method.

Thanks
Steven Benjamin

Condor
24 Nov 2010, 1:53 AM
1. Make the div overflow hidden.
2. Load the div content.
3. When the load succeeds, animate the div height to the new inner height.

StevenInc
24 Nov 2010, 6:23 AM
Thanks Condor!
PS - Great Presentation at SenchaCon this year!