Skip to content

Conversation

@vursen
Copy link
Contributor

@vursen vursen commented Oct 13, 2025

Description

This PR adds min-height: 1lh to [part~='cell'] ::slotted(vaadin-grid-cell-content) which increases the cell's default minimum height from 12px to 32px. This in turn prevents the virtualizer from creating excess buffer rows and, as a result, noticeably improves page rendering time in Aura:

Before After
Screenshot 2025-10-14 at 10 26 31 Screenshot 2025-10-14 at 10 26 26

(measured with 4x CPU throttle on /dev/playground/grid.html)

@vursen vursen changed the title refactor: increase min-height for grid rows in base styles refactor: increase min-height for grid cells in base styles Oct 13, 2025
@vursen vursen force-pushed the increase-min-height-for-grid-rows branch 2 times, most recently from ec62dfb to 05c15b8 Compare October 16, 2025 11:59
@vursen vursen force-pushed the increase-min-height-for-grid-rows branch from 05c15b8 to b28509e Compare October 27, 2025 08:27
@vursen vursen marked this pull request as ready for review October 27, 2025 08:28
@sonarqubecloud
Copy link

fixtureSync(`
<style>
:root {
--vaadin-grid-row-border-width: 0px;
Copy link
Contributor Author

@vursen vursen Oct 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an issue in the base styles caused by how borders are currently implemented, which causes Grid to incorrectly treat items under the header as visible. This should be addressed separately by refactoring the border implementation: #10331

@vursen vursen merged commit e3beab8 into main Oct 27, 2025
9 checks passed
@vursen vursen deleted the increase-min-height-for-grid-rows branch October 27, 2025 10:28
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.

2 participants