20 May 2012 7:17 AM #1
Unanswered: Painted gets fired before the screen is rendered
i want to show loading screen on some action and want to hide it only when the whole screen gets rendered.
but what i see is painted gets fired before the screen get rendered.
Can someone help me pls...
22 May 2012 5:23 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
The painted event is fired before things are inserted, the next step after painted is actual DOM insert. What are you trying to do in the painted event? There may be a better way to go about it.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
22 May 2012 5:43 AM #3
Thanks for reply.
What i am trying to do is....
User is on screen A,
User clicks button on screen A
on button tab event i show loading gif.
i make some calculation and dynamically create screen B.
now when the whole of screen B is rendered i want to hide the loding gif
on screen B i tried many of the events like painted, show, etc... but all gets fired before the screen gets rendered. my loading gif disappears and after a delay screen B gets rendered.
i want a event like onLoad() on screen B, any ideas?