KEMBAR78
refactor: disable virtualizer height placeholder in grid and combo-box by vursen · Pull Request #10155 · vaadin/web-components · GitHub
Skip to content

Conversation

@vursen
Copy link
Contributor

@vursen vursen commented Sep 12, 2025

Description

All virtual elements in grid and combo-box have a CSS-defined minimum height, so there is no need for the virtualizer to check element.offsetHeight === 0 and apply a placeholder height if the intrinsic height is 0. Skipping this step prevents possible style recalculations during virtualizer.update(), so this method can be called multiple times without additional overhead.

Part of vaadin/flow-components#7985

Type of change

  • Refactor

@vursen vursen changed the title refactor: disable virtualizer placeholder logic in grid and combo-box refactor: disable virtualizer height placeholder in grid and combo-box Sep 12, 2025
@sonarqubecloud
Copy link

@vursen vursen merged commit d7c3ca4 into main Sep 12, 2025
9 checks passed
@vursen vursen deleted the elementsMinHeightGuaranteed branch September 12, 2025 11:43
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 25.0.0-alpha10.

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