Using dropdown module in Table with scrolling #3238
-
I'm having trouble using the dropdown module in a table with the "scrolling" property [example]. When I remove the CSS "scrolling" option, the button with the dropdown appears correctly. Currently, I'm using a simple button with "ui.button" to get around this. But for many options, a dropdown is better. Video example: table-scrolling_overflow.mp4Regards. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Basic reason is that the dropdown menu is rendered inside the scrolling container, thus is limited to the scrolling area and overflows to the right. It will still overflow to the bottom though. Otherwise this would need a refactoring of the dropdown menu positioning code to not being part of the dropdown container anymore (like the popup module) |
Beta Was this translation helpful? Give feedback.
-
The popup module solves this problem perfectly. |
Beta Was this translation helpful? Give feedback.
Basic reason is that the dropdown menu is rendered inside the scrolling container, thus is limited to the scrolling area and overflows to the right.
What you can try is to use
left menu
instead ofmenu
to the dropdown menu.This will at least make sure the menu is leftward rendered and not overflowing to the right,
It will still overflow to the bottom though.
Otherwise this would need a refactoring of the dropdown menu positioning code to not being part of the dropdown container anymore (like the popup module)