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

Add minimum width to Grid Column #7476

Closed
tstiegler opened this issue Jun 6, 2024 · 1 comment
Closed

Add minimum width to Grid Column #7476

tstiegler opened this issue Jun 6, 2024 · 1 comment

Comments

@tstiegler
Copy link

Describe your motivation

When using automatic widths for grid columns, there is the potential for columns to be automatically sized too small and be manually size too small. Also, when using custom renderers for the table headers, the content can be cut off which is undesirable.

Describe the solution you'd like

Add a "min width" attribute to the Vaadin Grid Column component to force automatic widths and resizing columns to be at a minimum width on a per column basis.

I have a candidate for the code necessary to add this in a fork here: https://github.com/tstiegler/web-components

Describe alternatives you've considered

  • Handling the resize event and forcing width externally. This was considered not good user experience as it only triggers once the mouse button is released.
  • Handling resizing for the automatic widths when data is loaded. This causes the grid to flicker on load with the auto width sizes for a split second.

Additional context

No response

@web-padawan
Copy link
Member

Duplicate of #6669

@web-padawan web-padawan marked this as a duplicate of #6669 Jun 6, 2024
@web-padawan web-padawan closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2024
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

No branches or pull requests

2 participants