View Full Version : How to fire (browser )window resize function?

5 Aug 2010, 9:53 PM
Hi, I am playing with border layout. I have two buttons in 'center' panel. on click on 1st button I am hiding [hide()] 'south' panel. and on click on 2nd button I am showing [show()] 'south' panel.

In this I faced a weird thing, that is, when I call hide() for south panel, it hides it, but show a blue bg color. If I resize browser window then only it works properly.

and vise versa.

so after clicking on button, if I fire window resize event for browser, it will solve my problem. need help.


5 Aug 2010, 10:01 PM
Call doLayout() on the item that has the border layout after you hide the south panel.

5 Aug 2010, 10:11 PM
Thanks!, did that, however it didn't work.

just found that
Ext.getCmp('viewportid').syncSize() works. but it doesn't release the height space for 'south' panel the until I resize browser window.

So I am setting remaining calculated height to 'center' panel.