PDA

View Full Version : [CLOSED] Grid Autosize issue



mschwartz
10 Feb 2010, 9:55 AM
Just thought I'd bring this to your attention.

On my 2560x1600 monitor, if I maximize a viewport that contains a grid with an autoExpandColumn, the grid columns do not resize to fill the browser window.

The right most column has about 1000 pixels of unused white space to the right.

I inspect the autoExpandColumn and the width is 990 px.

Some code somewhere clamping the max value?

Jamie Avins
10 Feb 2010, 11:10 AM
http://www.extjs.com/deploy/dev/docs/?class=Ext.grid.GridPanel

autoExpandMax option for GridPanel defaults to 1000

But I definitely think you should send me that monitor so I can test it to make sure!

mschwartz
10 Feb 2010, 11:21 AM
OK, well here's a suggestion.

Look at the window.screen object and detect the screen resolution and use that as the default ;-)

http://www.javascriptkit.com/howto/newtech3.shtml