Hi all,
I use this code to build a table:
public void init() {
final int NUMBER_OF_ROWS = 100; // Works with 10
Window mainWindow = new Window("Table Sort Test");
mainWindow.setSizeFull();
setMainWindow(mainWindow);
Table ptable = new Table();
ptable.addContainerProperty("Sort_me_please", String.class, "--");
for (int i = 0; i < NUMBER_OF_ROWS; i++)
ptable.addItem("" + i).getItemProperty("Sort_me_please").setValue("Value " + i);
ptable.setWidth("100%");
ptable.setPageLength(NUMBER_OF_ROWS);
VerticalLayout vl = new VerticalLayout();
vl.addComponent(ptable);
mainWindow.addComponent(vl);
}
If I click the header the table scrolls a little bit downwards… but does not sort!! This only happens when
- the table is larger than the screen (there is no problem with only 10 rows in the example)
- I use IE 7 (there is no problem with Firefox or Chrome)
Is there a nice workaround to avoid this annoying behavior in IE 7?
Thanks, Thorsten
••••••
Eclipse 3.6 • Vaadin 6.5 • Vaadin Eclipse Integration 1.3.1 • JRE 5
Windows XP • IE7 (7.0.5730) & Firefox 3.6.13 • Tomcat 5.5.28 • SQL Server 2005