I’m trying to make a dropdown which shows a list of options- I’ve set it to absolute positioning so that it shows over the content below it, but I just can’t get it to stay within the width of its parent component or even a set width.
Okay, maybe my message was not clear - I want the menu list to overlay all other elements on the page when opened without having to make my heading section to stretch with you workaround. Imagine that there are 30 themes in the dropdown, this would be a very visually unpleasing solution.
The issue is not with the positioning type but with the way the filter themes wrapper is growing its size and not respecting any bounds.
Have you found a solution yet? Does setting the width of ‘filter themes-wrapper’ to 100% (absolute positioning) and setting its parent element to relative help?
Yes, sorry for the late response, been working a lot lately.
In my case, I had to set the position property of the parent element (fs-dropdown-1) to relative then the position of the first child (fs-dropdown-toggle-1) to relative and the position of the second child (filter themes-wrapper) to absolute with a high z-index