Table sort bug in IE 7

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

  1. the table is larger than the screen (there is no problem with only 10 rows in the example)
  2. 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

I would like to bump this up…

Is anyone able to reproduce the error?

Thanks, Thorsten

It is reproducible in IE7 and IE8 at least. The root problem is most likely the scrolling down because it prevents the mouseup event from reaching the header, thus preventing sorting from taking place.

This problem is covered by
Ticket #6197
and it was flagged as
critical
. As far as I see the milestone was stepwise changed from 6.5.1 to 6.5.4 at the moment.

Can you make a guess if and when this error could be fixed?

Thanks, Thorsten