PDA

View Full Version : GridPanel renderTo and browser window resize



jcrocker
23 May 2012, 8:52 AM
I have a very simple page where I am rendering a GridPanel inside an existing div. The div isn't an Ext container but part of an existing page layout. It renders correctly initially but when I resize the browser window the content is clipped instead of adjusting it's dimensions.

I'm sure this is something simple but I can't seem to figure it out. Does it need to be rendered inside an Ext container for this functionality to work?

scottmartin
24 May 2012, 1:50 PM
Have a look at: Ext.EventManager.onWindowResize(grid.doLayout, grid); to track browser resizing

Scott.

jcrocker
24 May 2012, 3:18 PM
Have a look at: Ext.EventManager.onWindowResize(grid.doLayout, grid); to track browser resizing

Scott.

Thanks Scott! It worked perfectly.