vaadin / framework

Vaadin 6, 7, 8 is a Java framework for modern Java web applications.
http://vaadin.com/
Other
1.77k stars 729 forks source link

Grid is missing scrollbars in Firefox #12605

Closed mikke-alekstra closed 4 months ago

mikke-alekstra commented 4 months ago

Vaadin 8.23.0 (also tested with 8.14.3) Latest Windows 11 Chrome and Firefox versions (also tested with Debian Buster Chromium/Firefox) Simple Maven project with archetype vaadin-archetype-application jetty.plugin.version 9.4.53.v20231009

It seems that Grid scrollbars are missing in Firefox. In Chrome they appear as expected.

Simple test code:

    @Override
    protected void init(VaadinRequest vaadinRequest) {

        int columns = 10;
        int rows = 10;
        Random random = new Random();

        Grid<Object> grid = new Grid<Object>();

        for (int i = 0; i < columns; i ++) {

            grid.addColumn(row -> "Data " + random.nextInt(1000, 10000))
            .setCaption("Column " + i);

        }

        List<Object> items = new ArrayList<>();

        for (int j = 0; j < rows; j ++) {
            items.add("");
        }

        grid.setItems(items);

        VerticalLayout layout = new VerticalLayout();
        layout.addComponent(grid);

        setContent(layout);

    }

Expected behavior: both vertical and horizontal scrollbars appear.

Actual behavior: there are no scrollbars with Firefox (Chrome works as expected)

Firefox: grid_firefox Chrome: grid_chrome