Single-Line grid growing infinitely when footer is set to grow #8523
Labels
bug
Something isn't working
Impact: Low
Severity: Major
vaadin-grid
workaround
There is a workaround in the comments.
Description
In our Vaadin Flow application, we set the grid footer to grow (instead of the body) so that the footer row is directly under the body even if the grid gets 100% height.
Since the update to Vaadin 24.6 this causes the grid to grow infinitely, when it has only one item. Grids with multiple items are not affected.
It also seems to be related to the layout in which the grid is placed, as it does not affect all grids in our application.
The issue is probably related to #7964
Expected outcome
The grid should not grow infinitely.
As a workaround you can set "--_grid-min-height: unset" on the grid
Minimal reproducible example
DataGridView.java
vaadin-grid.css:
A short screen recording showing the growing scrollbar
https://github.com/user-attachments/assets/de758914-4414-4bea-9dae-d3ad0f33d7cd
Steps to reproduce
vaadin-grid.css
file in frontend/themes/theme-name/component and insert the CSS code.Environment
Hilla: 24.6.2
Flow: 24.6.2
Vaadin: 24.6.2
Copilot: 24.6.2
Frontend Hotswap: Disabled, using pre-built bundle
OS: amd64 Windows 11 10.0
Java: Eclipse Adoptium 21.0.3
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Java Hotswap: Hotswap is not enabled
IDE Plugin: Not installed
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered: