I noticed this issue while reading the React Aria Components documentation, specifically for Popovers with container padding: https://react-spectrum.adobe.com/react-aria/Popover.html#container-padding. When the dialog trigger is positioned just right (on the edge of where the popover would flip to rendering from above to below), opening the popover causes it to erratically flicker on the screen (Chrome) or render the popover with no height (Firefox).
๐ค Expected Behavior?
The popover shifts to rendering below the trigger.
Provide a general summary of the issue here
I noticed this issue while reading the React Aria Components documentation, specifically for Popovers with container padding: https://react-spectrum.adobe.com/react-aria/Popover.html#container-padding. When the dialog trigger is positioned just right (on the edge of where the popover would flip to rendering from above to below), opening the popover causes it to erratically flicker on the screen (Chrome) or render the popover with no height (Firefox).
๐ค Expected Behavior?
The popover shifts to rendering below the trigger.
๐ฏ Current Behavior
No errors in the browser console.
In Chrome 122: https://github.com/adobe/react-spectrum/assets/1218900/0292ff41-382c-4c7f-ad30-92d41fb89610
In Firefox 124: https://github.com/adobe/react-spectrum/assets/1218900/e407e2fb-1172-4ed6-8556-ea984ca8e768
๐ Possible Solution
No response
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
Version
Whatever version the documentation is using.
What browsers are you seeing the problem on?
Firefox, Chrome
If other, please specify.
No response
What operating system are you using?
mac OS 14.3
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response