PDA

View Full Version : When the brower's size changed,I want the grid's size can be autochanged.



hejian3232
29 Aug 2011, 10:19 PM
My problem is , at begin brower's size is small.
So the grid's size also small.
But , when begin brower's size is bigger,the grid's size still small.

I want the grid's size can be autochanged.
How can I do?

skirtle
31 Aug 2011, 7:28 AM
There are many different ways to do this depending on exactly what you want. How does the grid fit into the rest of your page? Usually you'd just use a suitable layout and resizing is automatic but if the grid is used in an otherwise non-Ext page it may be necessary to do it manually. We can't really help without more information.

hejian3232
31 Aug 2011, 5:02 PM
skirtle,thank you for the answer.I have called the method [Ext.EventManager.onWindowResize] .
Now,grid size can be autochanged.