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

Popover is cut off in scrollable container #3898

Open
1 of 7 tasks
schneisn opened this issue Mar 4, 2025 · 2 comments
Open
1 of 7 tasks

Popover is cut off in scrollable container #3898

schneisn opened this issue Mar 4, 2025 · 2 comments
Labels
🐛bug Something isn't working 👩‍👧‍👦community feedback Feedback from community

Comments

@schneisn
Copy link

schneisn commented Mar 4, 2025

Which generators are impacted?

  • All
  • HTML
  • React
  • Angular
  • Vue
  • Web components
  • Power Apps

Reproduction case

Set the css attribute overflow: auto; for a parent element of the popover.
The popover is not fully visible.

Expected Behaviour

The popover is fully visible.

Screenshots

Image

Browser version

None

Add any other context about the problem here.

No response

@mfranzke mfranzke added 👩‍👧‍👦community feedback Feedback from community 🐛bug Something isn't working labels Mar 4, 2025
@mfranzke
Copy link
Collaborator

mfranzke commented Mar 4, 2025

@schneisn thanks a lot for your feedback. As we're not using the new popover-HTML-attribute so far (that would display those contents in the top-layer) and neither Anchor Positioning CSS feature, which provides collision control (for similar constellations like the one you've provided), I would expect that we would need some other solution in the meantime.

On the other hand, this might be an edge case (having a narrow area on the page in which overlapping content should get hidden). Is it a blocking problem you're currently facing or just something you wanted to point out regarding a problem that might occur ?

@schneisn
Copy link
Author

schneisn commented Mar 5, 2025

@mfranzke Thanks for the quick response.

We are facing the issue in every case where we have a popover as a child element in a scrollable element. That is a common case in our application.

Here are some examples where it happens:

A horizontally scrolling element where the popover is cut off at the top and left.
Image

A vertically scrolling element where the popover is cut off at the top. Even when the scrolling element is large, the popover might get cut off.
Image

It is not quite blocking us, but we have to work around it. The workaround is showing the popover with position: fixed; at a fixed position on the page. A fix, or a better workaround, in the next few weeks would help us a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working 👩‍👧‍👦community feedback Feedback from community
Projects
None yet
Development

No branches or pull requests

2 participants