View Full Version : Grid not resize when the SplitterBar in borderLayout moves?

7 Jan 2007, 7:58 AM

I found another problem. When I collapse the left menu or the bottom Help area, the grid is not automatically resized to fit the frame. The page looks really weird. I check the forum.js and found the function autoSize.

autoSize : function(){

This function is triggered when the spliterBar moves or collapsed. Could you tell me how to get the catch the event of spliterBar move in the layoutBorder and auto resize the grid?


7 Jan 2007, 8:01 AM
Render the grid into a GridPanel: http://www.yui-ext.com/deploy/yui-ext/docs/output/YAHOO.ext.GridPanel.html

7 Jan 2007, 8:17 AM
Sorry, I don't understand. Could you say a little bit in details?

In my case, the Grid is currently rendered in a ContentPanel. I need this contentPanel which contains one title bar and one toolbar on the top. If I put a Grid in a GridPanel and add the GridPanel to a BorderLayout, will I lose the toolbar on the top?

7 Jan 2007, 8:26 AM
I tried, it works now. Cool. Thanks