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: set max-height on popover overlay to not overflow viewport #8095

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

web-padawan
Copy link
Member

Description

Fixes #8016

Unlike vaadin-dialog, the vaadin-popover was missing max-height: 100% on the overlay part.
Also, I had to set it on the content part as well in order to make sure scrolling works properly.

Note: original styles for dialog were added in vaadin/vaadin-dialog#168 but in case of popover we need a slightly different approach since we don't have a "resizer container" element.

Here's how the resulting behavior looks like:

popover-scroll.mp4

Type of change

  • Bugfix

Copy link

sonarqubecloud bot commented Nov 5, 2024

@web-padawan web-padawan removed the request for review from tomivirkki November 5, 2024 13:00
@web-padawan web-padawan merged commit 6186236 into main Nov 5, 2024
9 checks passed
@web-padawan web-padawan deleted the fix/popover-max-height branch November 5, 2024 13:00
web-padawan added a commit that referenced this pull request Nov 5, 2024
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.6.0.alpha3 and is also targeting the upcoming stable 24.6.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.

Vertically long popover content can't be accessed
3 participants