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: endless horizontal scrolling with frozen columns #7060

Open
blackbluegl opened this issue Jan 23, 2025 · 1 comment
Open

GRID: endless horizontal scrolling with frozen columns #7060

blackbluegl opened this issue Jan 23, 2025 · 1 comment

Comments

@blackbluegl
Copy link

Description of the bug

If I freeze several columns in a GRID and they then exceed the visible area, I can scroll the table endlessly to the right. The column view is then no longer correct.

Expected behavior

If the frozen columns exceed the visible area, a scroll bar must still appear and the table must be scrollable to the last column.

Minimal reproducible example

@route
public class MainView extends VerticalLayout {

public MainView() {
    List<String> stringList = List.of("Data1", "Data2", "Data3");
    Grid<String> grid = new Grid<>();
    for (int i = 0; i < 10; i++) {
        grid.addColumn(string -> string)
                .setHeader("Frozen " + i)
                .setFrozen(true);
    }
    for (int i = 0; i < 10; i++) {
        grid.addColumn(string -> string)
            .setHeader("Col " + i);
    }
    grid.setItems(stringList);
    add(grid);
}

}

Versions

  • Vaadin / Flow version: tested in 24.5.x
  • Java version: 17
  • OS version: any
@mcollovati mcollovati transferred this issue from vaadin/flow Jan 23, 2025
@tomivirkki
Copy link
Member

Duplicate of #6615

@tomivirkki tomivirkki marked this as a duplicate of #6615 Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants