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

fix: improve resizing column min width logic #3589

Merged
merged 2 commits into from
Mar 23, 2022

Conversation

web-padawan
Copy link
Member

@web-padawan web-padawan commented Mar 21, 2022

Description

Fixes #3588

  1. Updated logic to check padding on vaadin-grid-cell-content
  2. Replaced hardcoded 10 with the actual resize handle width

Result

Normal column minimum width after resize (the resize handle uses 35px).

resize-normal

Last column minimum width after resize (the resize handle uses 18px).

resize-last

We could probably hardcode 35 for performance and consistency 🙈

Type of change

  • Bugfix

@web-padawan web-padawan requested a review from jouni March 22, 2022 12:10
@sonarcloud
Copy link

sonarcloud bot commented Mar 22, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 23.1.0.alpha1 and is also targeting the upcoming stable 23.1.0 version.

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

Successfully merging this pull request may close these issues.

[grid] When resizing column to make it narrow, content can become invisible
5 participants