thanks skirtle thought about that but definitely need a border layout. To behave exactly as one - with the option to slideOut a region programatically. Found a few posts for 3.x on doing it by just calling the region.slideOut(). but the regions have been reorganized in 4 so that might be affecting it.

I just don't know what to slideOut: not body, not el, not the panel. Those work but only if the panel is visible and in not desired ways..

Man what if life were so easy that it just knew - if its a region and you say panel.slideOut().. it just worked...

I think you misunderstood me. In the thread I suggested there is a post from me. In it I explain how to hide the >> tool or, alternatively, how to make it perform slide in/slide out instead of expand/collapse

Further to what I said on that thread, I think you can slide in/slide out programmatically like this:

Where did you put that? I tried it in "beforerender" of the panel, that is collapsed/expanded but it does not work. I get the following error in firebug:

Code:

borderLayout.regions is undefined

any idea? it would help me very much, too.

btw this is exactly what I wanted, only with a shown toogle-icon.

thanks in advice.

Edit:
The problem with your solution seems to be that the regions are set later. they does not exist at "beforerender" neither in the parent viewport nor in the panel itself.
If you could help it would be nice