-
Notifications
You must be signed in to change notification settings - Fork 3k
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
mWeb - Chat - Tooltip appears below composer after returning from "Go back to home page" link #55114
Comments
Triggered auto assignment to @johncschuster ( |
Edited by proposal-police: This proposal was edited at 2025-01-11 12:50:26 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.mWeb - Chat - Tooltip appears below composer after returning from "Go back to home page" link What is the root cause of that problem?When returning from another link, the
The issue arises from the calculation based on elementAtTargetCenterX . When navigating to another link, the point at targetCenterX becomes inaccurate.App/src/styles/utils/generators/TooltipStyleUtils/isOverlappingAtTop/index.ts Lines 31 to 42 in 4491e85
What changes do you think we should make in order to solve the problem?We can easily fix this by introducing a new prop App/src/styles/utils/generators/TooltipStyleUtils/index.ts Lines 129 to 133 in 4491e85
if (!shouldForceRenderingTop) {
shouldShowBelow =
(shouldForceRenderingBelow ||
yOffset - tooltipHeight - POINTER_HEIGHT < GUTTER_WIDTH + titleBarHeight ||
!!(tooltip && isOverlappingAtTop(tooltip, xOffset, yOffset, tooltipTargetWidth, tooltipTargetHeight)) ||
anchorAlignment.vertical === CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.TOP) && shouldForceRenderingBelow;
} And set <EducationalTooltip
...
shouldForceRenderingTop // new code
> POC
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?No, UI bug What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.84-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp #54869
Email or phone of affected tester (no customers): applausetester+010108kh@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: iPhone 15 Pro Max / iOS 18.2
App Component: Chat Report View
Action Performed:
Expected Result:
The educational tooltip should appear above the composer.
Actual Result:
The educational tooltip appears below the composer.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6711604_1736574805440.ScreenRecording_01-11-2025_13-28-55_1.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: