This adjusts contextual dropdown vertical position based on the available space in the parent container. It's assuming that the container that should be used for the measurement is the first first scrollable parent of the dropdown.
This is fairly computationally expensive, but because it happens on open it shouldn't cause issues in real-world scenarios.
feat: adjust contextual dropdown vertical position
Done
This adjusts contextual dropdown vertical position based on the available space in the parent container. It's assuming that the container that should be used for the measurement is the first first scrollable parent of the dropdown.
This is fairly computationally expensive, but because it happens on open it shouldn't cause issues in real-world scenarios.
QA
Storybook
To see rendered examples of all react-components, run:
QA in your project
from
react-components
run:Install the resulting tarball in your project with:
QA steps
Fixes
Fixes: https://warthogs.atlassian.net/browse/MAASENG-2428