Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ellipsis in header of Grid web component, altough there is enough space #6976

Open
provi-dominik opened this issue Dec 20, 2024 · 2 comments

Comments

@provi-dominik
Copy link

Description

If I create the following Grid without an entry, the last column header is displayed with ellipsis:
Grid grid = new Grid<>(Person.class, false);
grid.addColumn(Person::getFirstName).setHeader("First name").setFlexGrow(1);
grid.addColumn(Person::getLastName).setHeader("Last name").setFlexGrow(0);
grid.addColumn(Person::getEmail).setHeader("Email").setFlexGrow(0);
grid.addColumn(Person::getProfession).setHeader("Profession").setFlexGrow(0).setAutoWidth(true).setFrozen(true);
image

If I don't set the frozen property to true, the column header is displayed without an ellipsis:
image

Expected outcome

The last column header should appear without an ellipsis.

Minimal reproducible example

See the code in the description. It is based on the examples in the docs:
https://vaadin.com/docs/latest/components/grid

Steps to reproduce

Add the Grid (see code above) to a view. The view should have enough space for the grid.

Environment

Vaadin version(s): 24.6.0
OS: Windows

Browsers

Issue is not browser related

@web-padawan
Copy link
Member

Have you tried setFrozenToEnd(true) instead? That should be used for frozen columns at the end of the grid.

@provi-dominik
Copy link
Author

No, but in my application the frozen column is the first column of the grid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants