Open
Description
Provide a general summary of the issue here
Hi!
I'm trying to use zoom
feature provided by css, but looks like some of the popovers that use usePopover
hook are not rendered correctly - they are rendered out of bounds.
Please see a video where I reproduce the issue on react-aria docs website.
🤔 Expected Behavior?
Popovers should account for css zoom
property when calculating their placement.
😯 Current Behavior
Popovers are rendered outside of body
when its zoomed in/out using css zoom
💁 Possible Solution
No response
🔦 Context
We're trying to implement a functionality to make sure that users using smaller screens are using zoomed out version of our app, and zoomed in when they are on bigger resolution. It's a workaround until we make our app more responsive.
🖥️ Steps to Reproduce
- Go to docs of
usePopover
hook -> https://react-spectrum.adobe.com/react-aria/usePopover.html#example - Scroll down to
Open popover
button - Click it to verify popover opens -> it should
- Open browser dev tools
- Select
body
and add propertyzoom: 0.9
(works everywhere except firefox) - Click again on
open popover
button - BUG: popover is not visible
Version
3.33.1
What browsers are you seeing the problem on?
Chrome, Microsoft Edge
If other, please specify.
No response
What operating system are you using?
Windows 11
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response