PDA

View Full Version : How can I collapse a toolbar to get more screen space?



ztolley
14 Jan 2011, 6:33 AM
I'm hoping this has been done before and its just my fault for not being able to figure this out.

I want to have a main toolbar and below it I have a regular table list type affair, which works fine. Tricky thing is I want to be able to press a button in the main toolbar to toggle a 2nd toolbar below it. I can make the 2nd bar appear and disappear but the table doesn't resize to make space for it or to grow when its hidden.

Any ideas

gstock
14 Jan 2011, 8:21 AM
have you tried this:
Ext.getCmp('mainPage').doComponentLayout();

ztolley
17 Jan 2011, 1:43 AM
Did the trick, thanks