-
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
[$500] IOS - Decimal and currency goes out of the screen when currency with 3 digits selected #35212
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0177fc294299afae8c |
Triggered auto assignment to @NicMendonca ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.On IOS when having font zoom on, it overflows the amount field in the send money flow. What is the root cause of that problem?We don't have allowFontScaling={false} on the AmountTextInput to prevent it from scaling with display zoom. Line 47 in 071046f
What changes do you think we should make in order to solve the problem?pass allowFontScaling={false} in the AmountTextInput to TextInput App/src/components/AmountTextInput.tsx Line 42 in 071046f
What alternative solutions did you explore? (Optional)Adding line-break css to wrap the number to a new line |
@NicMendonca, @allroundexperts Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Reviewing now! |
Thanks for your proposal @jeremy-croff. I think your RCA is correct but I was not able to test your solution on a simulator. Can you post a screen recording of your solution in action on a real device? Thanks! |
Does it have to be a real ios device or can a simulator be used? |
I could only reproduce this on a real device. If you can reproduce on a simulator, do let me know the steps and I can give it a shot. |
ProposalPlease re-state the problem that we are trying to solve in this issue.When using a zoomed IOS experience, the amount text input overflows the screen as it scales beyond the screen size. What is the root cause of that problem?We have no way in react-native to prevent display zoom from effecting font-size. Android allows a way to not zoom https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#scalespagetofit What changes do you think we should make in order to solve the problem?We can introduce a new styling utility to remove zoom:
We can use that to fix the font-size to 40 for this component: Line 82 in 480ae8d
What alternative solutions did you explore? (Optional)Disabling zoom on the entire web view. Changing the amount input to wrap |
Triggered auto assignment to @trjExpensify ( |
Starting leave so re-assigning! |
The chances of somebody requesting the equivalent of £1.8m for reimbursement are about the same as me winning the lottery! I'd love to be proved wrong though and see a customer report this bug. @allroundexperts, I'm inclined to close this. What do you think? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Yep, I agree. The solution is sort of a work around as well. Not worth the time IMO. |
Cool, thanks for the sense check. Closing! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.32-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Precondition: Large text enabled on iPhone settings (Settings > Display & Brightness > Display Zoom > Large Text)
Expected Result:
Decimal and currency should be displayed properly
Actual Result:
Decimal and currency goes out of the screen when currency with 3 digits selected and Large Text enabled on iPhone settings
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6355256_1706223640303.RPReplay_Final1706055975.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: