Is there a way to set up a container so that when the window size is too small, it displays a scroll bar to view all elements that don't fit in one go? At the same time, can the child containing floating elements be allowed to extend beyond the boundaries of the container?
I am currently working with a Material UI Card, which contains various elements as shown here: https://i.stack.imgur.com/wpMux.png
In the image provided, you can see that using overflow: auto
for the CardContent works effectively.
However, the issue arises when the floating element for the Combo1 component needs to be displayed outside the bounds, resulting in an undesired outcome as depicted here: https://i.stack.imgur.com/Rk9yZ.png
If I try removing or changing the overflow property to overflow: visible
, the floating element displays correctly but then the content no longer scrolls properly, as illustrated in this image: https://i.stack.imgur.com/XZz7m.png
So, my question remains - is there a solution that allows only the floating elements to exceed the confines of a parent container with hidden overflow?