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: only show tooltip if the target cell is fully visible #7749

Merged
merged 4 commits into from
Sep 4, 2024

Conversation

web-padawan
Copy link
Member

@web-padawan web-padawan commented Sep 3, 2024

Description

Fixes #7744

In grids with many columns it's quite common to have cases where certain cell is not fully in the viewport due to horizontal scrolling. IMO we shouldn't show cell tooltip in this case as it might be positioned incorrectly.

Note: there is still a chance that the vaadin-tooltip using bottom or top position will not be fully visible as there is a more general issue: #7744 (comment). IMO that's worth extracting to the separate ticket as it needs more thinking.

Type of change

  • Bugfix

@web-padawan web-padawan marked this pull request as ready for review September 3, 2024 13:09
@web-padawan web-padawan marked this pull request as draft September 3, 2024 13:22
@web-padawan web-padawan marked this pull request as ready for review September 4, 2024 08:52
packages/grid/src/vaadin-grid-mixin.js Outdated Show resolved Hide resolved
packages/grid/src/vaadin-grid-mixin.js Outdated Show resolved Hide resolved
packages/grid/src/vaadin-grid-mixin.js Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Sep 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
6.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@web-padawan web-padawan merged commit 1119e9e into main Sep 4, 2024
8 of 9 checks passed
@web-padawan web-padawan deleted the fix/grid-tooltip-ensure-visible branch September 4, 2024 10:07
web-padawan added a commit that referenced this pull request Sep 4, 2024
…7753)

Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
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 tooltip can be partially invisible if the cell is not fully visible
3 participants