Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid is missing scrollbars in Firefox #12605

Closed
mikke-alekstra opened this issue Feb 12, 2024 · 0 comments
Closed

Grid is missing scrollbars in Firefox #12605

mikke-alekstra opened this issue Feb 12, 2024 · 0 comments
Labels

Comments

@mikke-alekstra
Copy link

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

@TatuLund TatuLund added the bug label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants