Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

scrollTo methods in Grid cause render bugs #1048

Closed
sirbris opened this issue Jun 18, 2020 · 5 comments · Fixed by #1062
Closed

scrollTo methods in Grid cause render bugs #1048

sirbris opened this issue Jun 18, 2020 · 5 comments · Fixed by #1062
Assignees
Labels

Comments

@sirbris
Copy link

sirbris commented Jun 18, 2020

Vaadin 14.2.1:
When adding items to a Grid and programatically scrolling to the end, empty rows appear at the top after 3rd time.
Small test case scenario to reproduce the issue... press button at least three times.

        List<String> items = new ArrayList<>();
        Grid<String> grid = new Grid<>();
        grid.setItems(items);
        grid.addColumn(item -> item);

        Button btn = new Button("Add item");
        btn.addClickListener(event -> {
            items.add("New item " + System.currentTimeMillis());
            grid.getDataProvider().refreshAll();
            grid.scrollToEnd();
        });

        add(grid, btn);
@TatuLund
Copy link

Can you check the workaround mentioned here https://github.com/vaadin/vaadin-grid-flow/issues/944

@TatuLund
Copy link

@TatuLund
Copy link

@sirbris
Copy link
Author

sirbris commented Jun 20, 2020

Can you check the workaround mentioned here #944

Yes, that workaround worked

@tomivirkki tomivirkki added the BFP label Jun 22, 2020
@DiegoCardoso DiegoCardoso self-assigned this Jul 3, 2020
DiegoCardoso added a commit that referenced this issue Jul 3, 2020
fix #1048

related with #944 and #1028
alvarezguille pushed a commit that referenced this issue Jul 24, 2020
fixes #1048

related with #944 and #1028
web-padawan pushed a commit that referenced this issue Jul 24, 2020
web-padawan pushed a commit that referenced this issue Jul 24, 2020
web-padawan added a commit that referenced this issue Jul 24, 2020
fixes #1048

related with #944 and #1028

Co-authored-by: Diego Cardoso <diego@vaadin.com>
web-padawan added a commit that referenced this issue Jul 24, 2020
fixes #1048

related with #944 and #1028

Co-authored-by: Diego Cardoso <diego@vaadin.com>
@AB-xdev
Copy link

AB-xdev commented Sep 8, 2020

Sometimes we experience a similar problem with scrollToIndex in a TreeGrid:
grafik

Is it possible that the underlying issue is the same as described here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants