by remram · 3y ago · 0 comments
Is there a limitation in CSS preventing it?
This runs counter to the behavior of it being anchored to a parent container.
-1-----------
| |
| -2--- |
| | D | |
| ----- |
| |
-------------
If you attach the dropdown options to the inner container (2), they are cropped.If you attach the dropdown options to the outer container (1), they don't scroll with the rest of their component (D).
----
Non-native dropdowns in general are handicapped.
For Windows/MacOS/Linux, native dropdowns can exceed the bounds of even the OS window. There is no CSS equivalent of this behavior.