Open robdekort opened 1 year ago
The picker is positioned below, but if there's not enough space below, it switches to above.
When you change groups to one with more items, the height gets bigger, doesn't fit below, so it moves above. And then the opposite when you go to a group with less options.
If you had something underneath the replicator so there's more space underneath, you wouldn't see this issue.
Not sure how to solve this. Maybe we just make it a fixed height and be scrollable.
Ah yeah, tricky! That might be a nice solution though.
Can we turn off the above/below logic and just force it below? If so, does it get clipped by the browser or will it just expand the viewport to show it? If so, you'd need to scroll down sure but then it would stay in the same place and be usuable.
It gets clipped because various things could add overflow: hidden
to the body.
Bug description
When you have replicator/bard set picker with a few groups the picker can switch above/below the plus button.![gif](https://github.com/statamic/cms/assets/69107412/9a580a14-3738-498a-a447-c237351cdb48)
Perhaps the picker should always open where it opened on first click.
How to reproduce
Add a set picker with a bunch of groups and items. Click around.
Logs
No response
Environment
Installation
Starter Kit using via CLI
Antlers Parser
runtime (new)
Additional details
No response