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

Dropdown menu cutoff by scroller #221

Open
polvoblanco opened this issue Nov 30, 2020 · 1 comment
Open

Dropdown menu cutoff by scroller #221

polvoblanco opened this issue Nov 30, 2020 · 1 comment

Comments

@polvoblanco
Copy link

Hi,

Does anyone know a way to prevent the popup (menu) portion of the single-dropdown from being cut off when used inside a scroller?

Thanks, Paul

@Gregg8
Copy link
Contributor

Gregg8 commented Dec 2, 2020

While we went to lengths to make the popover component expand beyond the limits of scrollers (using the :no-clip? arg, see: http://localhost:3449/#/popovers), this was not extended to any other component. It also had the disadvantage in that when you scrolled while the popover was visible, the popover remained fixed on screen while the anchor scrolled away with the window.

So not a perfect solution.

If you're interested in implementing the same functionality for the dropdown, then here is the black magic that does it:

The trick used it to set the :position of the popover div to "fixed" and then calculate where it should be on screen under fixed positioning.

Furthermore, if you get it working (using this or a better technique), we'd appreciate a PR.

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

No branches or pull requests

3 participants