Fix Account tooltip no longer appears after rotating device - #101588
Conversation
|
@codex please review |
|
@MelvinBot please review |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
ReviewThe fix is correct and lands on the right component. Four things to address before merge — none are blockers on the approach. 1. Duplicate condition in the same component. 2. You deleted a "why" comment without replacing it. The removed lines explained why the tooltip is right-aligned (opens leftward into the sidebar per the mockup, instead of overflowing into the central pane). That branch still exists, so the rationale still applies. Keep it on the 3. No unit test. 4. The root cause in the description looks imprecise. You attribute it to the right-edge check. For a header-anchored element the vertical check is the one that fails unconditionally: Two scope notes (no action needed, just be aware)
🤖 Web test steps verification results: The web run confirms the tooltip survives a portrait → landscape → portrait viewport round-trip, but it does not cover the actual bug. On desktop web
|
…appears-on-rotation
…appears-on-rotation
…appears-on-rotation
|
@bernhardoj 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] |
|
@truph01 checking... |
|
Yes, also fixes other tooltips with the same issue: Screen.Recording.2026-09-28.at.12.58.52.mov |
|
I updated test steps and description to cover that issue |
|
@bernhardoj Should I review this PR since it comes from my PR #85229? |
garrettmknight
left a comment
There was a problem hiding this comment.
Looks good from a product perspective.
|
@truph01 yeah, since it's a landscape issue, you can take over reviewing this |
|
@truph01 all yours |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-09-30.at.23.23.20.movAndroid: mWeb ChromeScreen.Recording.2026-09-30.at.23.29.49.moviOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 luacmartins has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.5.0-0 🚀
|
|
No help site update is needed. This bug fix makes educational tooltips, like the Account and Copilot tooltips, appear again after you rotate the device, which is what users already expect. |



Explanation of Change
The top bar account tooltip stopped appearing after rotation.
BaseEducationalTooltipran its scroll-overflow check for every tooltip; the account avatar sits at the screen's right edge, so after rotating the check read it as overflowing and hid it. It now runs only whenshouldHideOnScrollis set.Fixed Issues
$ #101380
$ #102061
PROPOSAL: N/A
Tests
Account tooltip:
insightsPagebeta.Copilot tooltip:
Prerequisite: Account has been set as copilot by another user.
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
Screen.Recording.2026-09-18.at.14.26.17.mov
Screen.Recording.2026-09-28.at.12.58.52.mov
Android: mWeb Chrome
iOS: Native
Screen.Recording.2026-09-18.at.14.58.34.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-09-18.at.15.52.35.mov