Dropdowns don't reposition to avoid overflow at a very narrow range when they approach the bottom of their positioned ancestor. #2187
Labels
bug
Things that aren't working right in the library.
Describe the bug
sl-dropdown
s are meant to alter the position of the dropdown contents to be above the trigger if there's not enough space to render them without overflow below it. This works most of the time, but there's a narrow range of scroll values where it doesn't correctly flip the dropdown to the top, and instead renders a scrollbar.To Reproduce
Demo
Example in the Shoelace docs:
Example in our company's application:
Browser / OS
Additional information
I've tried this with a custom styled menu as well, and with different
distance
values as well, and the bug still occurs. It doesn't seem to be tied to any display properties, it just seems to be a problem with computing the required size of the menu.The text was updated successfully, but these errors were encountered: