PDA

View Full Version : GridPanel and WindowResize



eztam
27 Jan 2010, 11:48 AM
Hi,

I've got a GridPanel with a tbar and autoWidth.
Around the GridPanel there's a div with the width of 60%.

The problem i get is if I open the page in a browser window and (after loading all elements) maximize this browser window, the toolbar won't be resized with the GridPanel. Also I want the grid headers widths to be reloaded.

What can I do?



Ext.EventManager.onWindowResize(function() {
//what to do to reload grid proportions?
});

eztam
27 Jan 2010, 12:13 PM
Solved it:



Ext.EventManager.onWindowResize(function() {
grid.setWidth(Ext.get('parent-container-id').getWidth());
});