[HOLD for payment 2021-12-06] [Hold for payment on 25th Nov] [$1000] Android/iOS - Changing orientation breaks layout
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel! https://www.upwork.com/jobs/~0130cf8bfe4742fbde
Action Performed:
- On an Android with a big screen
- Open the app
- On LHN, change the orientation to landscape
Expected Result:
Layout should not break
Actual Result:
Layout is broken after changing the orientation to landscape.
Workaround:
Closing and reopening the app removes the issue.
Platform:
Where is this issue occurring?
- Android
Version Number: 1.1.3-3
Reproducible in staging?: yes Reproducible in production?: yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/44479856/135330285-511e2742-6a5d-44bc-b431-bef7b7ca25db.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Santhosh-Sellavel Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1631730111364600
Triggered auto assignment to @laurenreidexpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
Triggered auto assignment to @MonilBhavsar (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
I was able to reproduce this issue in a Galaxy A52 (6.5-inch screen size)
Was able to reproduce the reported issue on Android simulator and iOS device...

... But looking more into screen orientation of our app, looks like we need to improve it a lot. In the app, on login page in landscape mode, the highlighted part of screen is responsive, Trying to scroll down by sideways makes one feel like app is unresponsive...
...We also need to improve transition when changing from landscape to portrait and vice versa.
https://user-images.githubusercontent.com/32012005/135423219-eaf7c2ab-ac96-42c3-9088-ac97bbaaccc8.MP4
Having some issues getting this on Upwork, will upload tomorrow
https://www.upwork.com/jobs/~0130cf8bfe4742fbde
Triggered auto assignment to @Julesssss (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
@MonilBhavsar @Julesssss you can decide between two of you who wants to stay assigned 🙃
Oh, I should have unassigned myself from this one after adding external label.
Honestly, I think we should just block landscape mode for now. It can be a lot of work to support a rarely used feature.
👍 I see slack doesn't have this feature too
I do think we should just fix this – though we should take it one problem at a time. It doesn't need to be a top priority for us, but when we find something that's very broken with orientation change, we can fix it.
Although the team mostly disagrees that landscape mode is an important feature for mobile, valid counterpoints have been made here. We support iPad, and landscape mode is arguably the best way to consume the app. So we should fix landscape bugs.
Please refer to this post for updated information on the n6 hold, we've raised the bonus to $250 for all issues where a PR is created before the N6 hold is lifted.
sorry, can somebody explain what does n6 hold mean?
I will action this tomorrow and increase price on Upwork, making a daily so I remember to do it!
Bounty is now $500 for this
Proposal
I think the only way to fix the issue mentioned above is increasing the delay from 100ms to 1s in here: https://github.com/Expensify/App/blob/c9926d910fd3ebe4ebb16d0c7cea43dea0a732c3/src/components/withWindowDimensions.js#L42
Other than that, there's some other issues to be concerned, such as:
If you open this menu, u can't be able to close on landscape mode.

In the devices with notch (maybe only iPhone), some buttons are blocked.

This kind of issues can be fixed by using safe area insets and I would like to work on this.
@kakajann these are valid issues please report it in slack and get separate issue created with help of @isagoico