PDA

View Full Version : Grid / gridView doesn't resize column width when browser restore size on IE



danyric
17 Mar 2011, 9:52 AM
Hi,

I'm facing what it seems a bug in :

Version: ext GWT 2.0.2.
OS: Windows XP
Browser affected: Internet Explorer 8.0


When using a simple Grid / gridView on IE (for instance 8.0) . If you maximize your browser the columns are resized, and when you restore window size, the columns keep their size width unchanged, so you can't see/access to the hidden columns(Grouping view doesn't seems to be affected by this).

Is there a way to correct this.
Thanks in advance.




List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
ColumnConfig column = new ColumnConfig();
column = new ColumnConfig();
column.setId("type");
column.setHeader("oneoneoneoneoneoneoneoneoneoneoneoneoneoneoneoneoneoneoneoneone");
configs.add(column);

column = new ColumnConfig();
column.setId("begin");
column.setHeader("twotwotwotwotwotwotwotwotwotwotwotwotwotwotwotwotwo");
configs.add(column);

ColumnModel columnModel = new ColumnModel(configs);


grid = new Grid<BeanModel>(store, columnModel));
grid.setBorders(false);
grid.setColumnLines(true);
grid.setColumnReordering(false);
grid.setId("operatinghours-grid");
grid.setAutoExpandColumn("name");
grid.setLoadMask(true);
grid.setAutoWidth(true);
grid.setView(new GridView());
grid.getView().setForceFit(true);

sven
17 Mar 2011, 10:29 AM
grid does not support autoWidth. You need to correctly size your grid.

danyric
18 Mar 2011, 12:04 AM
grid does not support autoWidth. You need to correctly size your grid.

Thank sven for your answer, but as I mention in my previous post, all works fine with other browser than IE, this is why I focus the bug on IE browser.
This why I think there something to do to fix it.