Table scrollbars in Chrome

Hi,

I’ve noticed some strange Table behavior in Chrome: additional scroll bars appear when you scroll down big table . You should use non-default theme to reproduce this bug. At least runo and chameleon themes are affected.
Vaadin 6.2.6, 6.3.0.pre1
Chrome 4.1.249.1045 (42898)

Here is the sample app:

package test;

import com.vaadin.Application;
import com.vaadin.data.Container;
import com.vaadin.data.Item;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;

public class TestApp extends Application {

    private static int PROPS = 15;
    private static int ROWS = 1000;

    @Override
    public void init() {
        setTheme("runo");
        Window w = new Window("Table scrollbars bug example");
        setMainWindow(w);

        VerticalLayout vl = new VerticalLayout();
        vl.setSizeFull();
        vl.addComponent(createTable());
        w.setContent(vl);
    }

    protected Table createTable() {
        Table table = new Table(null, createContainer());
        table.setSizeFull();
        table.setPageLength(50);
        table.setColumnReorderingAllowed(true);
        table.setSelectable(true);
        return table;
    }

    protected Container createContainer() {
        Container container = new IndexedContainer();
        for (int i = 0; i < PROPS; ++i)
            container.addContainerProperty("prop" + i, String.class, null);
        for (int i = 0; i < ROWS; ++i) {
            Item item = container.addItem(i);
            for (int p = 0; p < PROPS; ++p)
                item.getItemProperty("prop" + p).setValue("property value 1234567890");
        }
        return container;
    }
}

Created
http://dev.vaadin.com/ticket/4489
for this problem

Thanks for your reply.

Hi!

Are going to use 6.3 soon? The fix I made to 6.3 branch isn’t GWT 1.7 compatible. I wouldn’t like to back port it manually to 6.2.

I thing you can fix it with css too by setting default display to none (will be overridden by component).

cheers,
matti