25 Mar 2013 8:19 AM #1
Hiding/showing a collapsed window
To briefly explain our setup, we are using a tab panel as the primary container for our UI. Each panel added to the tab panel is assigned a WindowGroup object and any window created by that panel gets added to the panel's WindowGroup. Then when you switch to a new tab, the code loops through the windows in the WindowGroup of the previous tab and hides them, and then loops through the windows in the WindowGroup of the newly active tab and shows those.
Some of our windows also have custom collapse/restore options that collapse the window and move it into the bottom left corner of the browser window. The issue is that when you change from a tab with a collapsed window, and then change back to that tab, the collapsed window is automatically restored by the show method. I have some code that makes sure the window get re-collapsed in that case, but it's kind of messy looking in the UI because you see the window briefly before it gets re-collapsed.
So I was just wondering if anyone knew of a way I could make these windows visible again without automatically setting off the restore process. Any suggestions would be greatly appreciated
Last edited by slsmithtx; 25 Mar 2013 at 10:09 AM. Reason: grammar
27 Mar 2013 1:03 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
If you render into the tab, when the tab is hidden the window should right?Mitchell Simoens @LikelyMitch
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.
28 Mar 2013 5:17 AM #3
Thanks for the suggestion! That hadn't occurred to me. I'm giving it a try and it seems to be working. Much simple than my solution.