18 Apr 2012 10:31 AM #1
Unanswered: Resize events on navigation views not at the top of the stack.
I have a navigation view with a main (default) view. This default view is a panel with a custom component in it derived from Ext.Component. The custom component has its resize handler defined.
If I push a view onto the stack, resize the browser, and then pop that view, I cannot figure out how to ensure my custom component gets a resize event fired so that it looks right when the default view is exposed again.
While it's shown, the resize event is fired just fine, both before and after the push/pop.
Any ideas what I might be doing wrong?
18 Apr 2012 10:39 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Are you recreating the component when you go to push it for a second time?
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 firstname.lastname@example.org
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.
18 Apr 2012 10:50 AM #3
Thanks Mitchell. I fear I failed miserably in explaining the problem properly . I don't think my component gets destroyed in the scenario. I'll try again…
1) I display my component in a panel in a navigation view.
2) I push something else onto the navigation view stack.
3) I resize the browser/rotate the device.
4) I pop the navigation view stack (revealing my component from step 1 again).
My component is now the wrong size.
26 Apr 2012 10:00 AM #4
Any thoughts on this? The app doesn't look too good when you pop back up the view stack and views only fill part of the screen.