View Full Version : Resizing GridPanel on browser resize

12 Jun 2009, 8:45 AM
Hey all,

I have a GridPanel, which I currently renderTo a div on my page. I don't have any sort of layout associated with the grid (I'm new at this). I don't care much for the div itself, but I would like the GridPanel to resize proportionately with the browser and stay at the same X,Y where the div is now. The way it's currently working, the grid is shown as wide as the div, but the height of the grid seems to be stuck at 300px, regardless of how high I make the div.

Again, the ideal scenario:
- place grid at a certain location on the page (ie. between other controls)
- set min width and height of grid
- have option to set max width and/or height of grid
- have grid resize when user resizes browser

Thanks in advance for your help!

12 Jun 2009, 11:55 AM
Sounds like you should start with a border layout in a viewport. See the complex layout example