-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-aria Popover does not overlay trigger element when placement is bottom #7629
Comments
Unfortunately I cant replicate your screenshots given the instructions you have in the report. From what I see, your I hope this helps 👍 |
@nwidynski Yup, that's totally expected. My question is, shouldn't it do the same if it collides with the bottom of the viewport? |
@obaida-adi Mind providing a stackblitz? Just want to be absolutely sure I'm reproducing the same thing locally when debugging.
Yep, theoretically it should since your overlay has a fixed height and should be the responsibility of this portion of the code if I remember correctly: react-spectrum/packages/@react-aria/overlays/src/calculatePosition.ts Lines 186 to 194 in cdba748
|
Provide a general summary of the issue here
When a react-aria popover is triggered, the overlay section does not overlay the trigger element when the placement is bottom.
🤔 Expected Behavior?
I expect the behavior to be the same with top and bottom placement. Note the following screenshots where we see a difference in behaviour when placement is top and when placement is bottom.
Top placement:
![Image](https://private-user-images.githubusercontent.com/29341751/404401688-4c453633-5746-41f1-aa20-c412c71b7ad7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjMyMjgsIm5iZiI6MTczOTM2MjkyOCwicGF0aCI6Ii8yOTM0MTc1MS80MDQ0MDE2ODgtNGM0NTM2MzMtNTc0Ni00MWYxLWFhMjAtYzQxMmM3MWI3YWQ3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDEyMjIwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE1YWI4ZjJmNWUzNDcxMzBhYjlkNWFlYjdjNWNkMjUwOWJkYjc1N2UwOTI5ZTEwN2I4ZTY4MDExMjBhYzI0MjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.tvFbQ96lQlcDx2FvXpMJqmDDZVy1XH-Af9LRexWPsAs)
Bottom placement:
![Image](https://private-user-images.githubusercontent.com/29341751/404401788-67e1b025-01de-4d13-ad6b-c77301815215.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjMyMjgsIm5iZiI6MTczOTM2MjkyOCwicGF0aCI6Ii8yOTM0MTc1MS80MDQ0MDE3ODgtNjdlMWIwMjUtMDFkZS00ZDEzLWFkNmItYzc3MzAxODE1MjE1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDEyMjIwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThlMjdhNTYwNzdmNWFmNGNmZTY2Y2RkYWJmZDZhYjcxZWRhZGQxZTU0YTg4ZTkyMGQ3YWE1ZWYyM2YyZGZlNWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.5E5GGrLqTbctOtAdSc0kiZViogsFeoBVFa4UaefRkMA)
😯 Current Behavior
Currently, the overlay does not overlay the trigger element when placement is bottom.
💁 Possible Solution
No response
🔦 Context
No response
🖥️ Steps to Reproduce
Version
react-aria-components: 1.5.0
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
Mac OS
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: