Skip to content

Conversation

ugur-vaadin
Copy link
Contributor

@ugur-vaadin ugur-vaadin commented Aug 19, 2025

Description

It is possible that the height calculations are not complete for all the elements when the positioning in the virtualizer occurs. This is reproducible not only with a grid, but with any component that uses a virtualizer. In order to prevent the incorrect positioning and overlapping of items, this PR adds one cycle of additional measurements for async height updates. This does not seem do cause any flickers, weird scrolling behaviour, or performance issues.

Fixes #9077

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/contributing/pr
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.

@ugur-vaadin ugur-vaadin marked this pull request as ready for review September 1, 2025 21:42
Copy link

sonarqubecloud bot commented Sep 1, 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

Successfully merging this pull request may close these issues.

[card] Using a card inside a grid via Flow's component column breaks row layout
1 participant