Dropdown positioning problem
See original GitHub issueWhen component is not rendered in place, dropdown is appended to div with id ember-basic-dropdown-wormhole
which is added to body. In my use case, body is not scrollable and a section of the body is scrollable in which power select is used. In this scenario when scrollable section is scrolled, trigger scrolls with the scrollable section, but dropdown doesn’t scroll along with trigger as it is positioned absolute(parent element is body). If select is at the bottom of the section and rendered in place, dropdown goes down(There is no auto positioning for render in place).
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Dropdown position Issue [closed] - Stack Overflow
I'm working on navbar dropdown menu and him having some trouble trying to position the dropdown menu with a width 100% but when...
Read more >Absolute positioning of dropdown can cause problems #568
The dropdown cannot be displayed outside of the container-div then, so it is partially hidden. The "workaround" is to make the ".choices" div ......
Read more >dropdown-menu not auto positioning
Expected behavior when scrolled to the bottom of the page dropdown menu should auto position to top. Actual behavior no css style is...
Read more >dropdown positioning problem in UI for ASP.NET AJAX - Telerik
I have a RADComboBox thats populated from a database (there are 4 items). when I select the dropdown, the actual dropdown menu appears...
Read more >Positioning a content below a drop down button
Problem: My drop down menu wont position it self as “block” or drop down, instead its side by side(link1, link2, link3) .
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m posting in this old issue as none of the options work for me.
I have a panel that has an outlet, but my outlet is in a
liquid-outlet
sorenderInPlace
anddestination
both don’t work because the height of the outlet is defined by by liquid-fire. The results get cut off by the overflow anddestination
doesn’t work because it’s getting it’s offset from the window left and not from it’s containing element, as it exists in aliquid-outlet
it hasposition:absolute;
on the container, so I was going to force the no scroll using the css posted above for the wormhole container, but.is-dropdown-open
is never added to the container.Does anyone have a way forward?
Yes, I’ve updated the docs showing how to customize this: https://ember-power-select.pagefrontapp.com/docs/the-list
I think that in your case since the app is not scrollable but some element inside, that could be fixed if instead of insertig the content of the select in a child of the body, you attach it to a child of the element of the element that has the scroll. Perhaps you need to make the element that contains the scroll
position: relative
, but I think that this might workYou need to update to the very last version of the component to do that.
Makes sense?