Skip to content

fix: make scrollToColumn update cell position synchronously#11291

Merged
sissbruecker merged 1 commit intomainfrom
fix/grid-scroll-to-column-sync
Mar 10, 2026
Merged

fix: make scrollToColumn update cell position synchronously#11291
sissbruecker merged 1 commit intomainfrom
fix/grid-scroll-to-column-sync

Conversation

@sissbruecker
Copy link
Contributor

Description

Any scrolling in the grid needs to run __updateHorizontalScrollPosition to update positions of individual table elements so that the respective content actually becomes visible. Currently this is only run asynchronously after scrollToColumn, which means that scrolling to a column programmatically in a test can lead to follow up interactions (e.g. clicks) with cell contents failing (similar issue with checking cell visibility in the currently flaky flow-components ITs).

This change calls __updateHorizontalScrollPosition synchronously in scrollToColumn, so content can be interacted with right after scrolling.

Type of change

  • Bugfix

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 9, 2026

@sissbruecker sissbruecker merged commit 172dca8 into main Mar 10, 2026
10 checks passed
@sissbruecker sissbruecker deleted the fix/grid-scroll-to-column-sync branch March 10, 2026 09:57
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 25.1.0-beta3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants