Fix flipping behavior of GlCollapsibleListbox
Summary
Since the migration to Floating UI, it's possible the GlCollapsibleListbox shows this kind of jumping behavior when e.g. filtering the items so the height of the listbox changes.
If we switch back to a version of gitlab/ui before the move to Floating UI, e.g. v63.0.0
, this behavior isn't seen:
Steps to reproduce
Add search to audit event type filter (gitlab!123700 - merged) • Lorenz van Herwaarden • 16.2 introduces search in a GlCollapsibleListbox that experiences this behavior. It might be reproducible in other listboxes with search where the listbox is rather close to the bottom of your viewport so it switches between top and bottom placement.