View Full Version : changing Panels colapsed state

11 Aug 2010, 12:30 AM
Hi there,

I am trying to change the state of the panel once it is collapsed, i need it to be a width of 32px so my menu which it hosts is visible in only buttons instead of tabs when expanded, how would i do this ??

thanks in advance.

11 Aug 2010, 1:28 AM
I don't understand the question. Can you elaborate?

11 Aug 2010, 3:11 AM
Hi Condor, i already found a solution by overriding the onCollapse method.
But this takes me to another question, i know have these instructions setup in the onCollapse.

this[this.collapseEl].setWidth(35, {duration: 1});

But the original code is :

Ext.apply(this.createEffect(animArg||true, this.afterExpand, this),

i use the above cause i need the 35px of space to be there, is there anyway i can achieve that in the bottom part ?

thanks again

11 Aug 2010, 3:45 AM
btw it regards a menu that is located on the left side of the screen, it animates to the left and then needs to be spaced 35 px from the left to turn in to a mini menu (ipad mode)