vaadin / flow-components

Java counterpart of Vaadin Web Components
101 stars 66 forks source link

Grid column headers are not aligned with the columns themselves #6849

Open archiecobbs opened 1 day ago

archiecobbs commented 1 day ago

Description

After loading and displaying a new Grid, the column headers are not aligned with the columns themselves.

If you then grab one of the separators between the column headers and slide it left or right, the headers "snap" into their correct alignments.

Here's a video showing the problem:

https://github.com/user-attachments/assets/230c1121-af7c-47c8-a382-9d8dd13e0e9e

Expected outcome

The column headers should always be aligned with the columns themselves.

Minimal reproducible example

Please download and run this reproducer: https://github.com/archiecobbs/vaadin-grid-load-fail-issue/tree/column-alignment-issue

Note you have to checkout the column-alignment-issue branch.

Steps to reproduce

  1. Run git clone git@github.com:archiecobbs/vaadin-grid-load-fail-issue.git
  2. Run git checkout column-alignment-issue
  3. You need to have tomcat@10 installed via brew
  4. Run mvn clean package
  5. Run the script ./run.sh
  6. Connect to http://localhost:8080/example/example/

Environment

Vaadin version(s): 24.5.5 OS: MacOS 15.1.1

Browsers

Chrome