[CP Staging] Adjust popover positioning logic to ensure it remains within window - #59808
Conversation
…ounds by applying vertical shift constraints.
|
@ZhenjaHorbach Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
I'm building IOS and Android, but it is not critical for this issue because they use the narrow layout. |
|
All platforms have been tested. It works properly. |
Reviewer Checklist
Screenshots/Videos |
|
LGTM ! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Adjust popover positioning logic to ensure it remains within window (cherry picked from commit 6b642de) (CP triggered by AndrewGable)
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 9.1.24-9 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.24-10 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.24-10 🚀
|


Explanation of Change
The PR fixes the issue where the popover was not being positioned correctly when the anchor was at the bottom of the screen.
Fixed Issues
$ #59785
PROPOSAL: N/A
Tests
Precondition:
Offline tests
Same as tests.
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Copilot.mp4
Invoice.mp4
MacOS: Desktop
Desktop.mp4