You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Android - Switch to Expesify classic - Next button has extra padding on 2nd screen of survey #47280
Version Number: 9.0.19.3 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
@JmillsExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
The max height value in Android has a wrong calculation that leads to the form not taking all available space. The form height is used to let the form input to expand based on the form height.
The form height gets the window height and then subtracts it from the inset top. However, the window height on Android doesn't take the inset top height into account, so subtracting it from the inset top will make it smaller. We face this similar issue in #14563 too.
Another issue I noticed is that on iOS, the input can overlap with the button.
This is because recently, we have a PR that adds another bottom space for the button, but we didn't include the calculation yet to the max input height calculation.
The production deploy automation failed: This should be on [HOLD for Payment 2024-09-12] according to #48515 production deploy checklist, confirmed in #47957 (comment)
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
Determine if we should create a regression test for this bug. Yes
If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Regression Test Proposal
Open Settings > Switch to Expensify Classic.
Select any reason and proceed to the next screen.
Verify the next button is aligned at the bottom of the page.
The next button should have the same padding on all screens of the survey flow.
All paid out. I'm going to pass on a regression test for this one given the polish nature of this bug. @bernhardoj please submit a request via New Expensify and we'll make sure your payment is processed.
Activity
melvin-bot commentedon Aug 13, 2024
Triggered auto assignment to @JmillsExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.lanitochka17 commentedon Aug 13, 2024
We think that this bug might be related to #vip-vsp
lanitochka17 commentedon Aug 13, 2024
@JmillsExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
daledah commentedon Aug 13, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Android - Switch to Expesify classic - Next button has extra padding on 2nd screen of survey
What is the root cause of that problem?
The
StyleUtils.getMaximumHeight(formMaxHeight)makes the form's height is shorter than normal, so the button is moved to top as well:App/src/pages/settings/ExitSurvey/ExitSurveyResponsePage.tsx
Line 107 in 3b0f99e
What changes do you think we should make in order to solve the problem?
We should remove that style.
bernhardoj commentedon Aug 13, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Next button of 2nd screen of survey on Android has extra spacing below it compares to other platform.
What is the root cause of that problem?
On the 2nd screen of the survey page, we have a max height style to limit the form height.
App/src/pages/settings/ExitSurvey/ExitSurveyResponsePage.tsx
Line 107 in 420c2a1
The max height value in Android has a wrong calculation that leads to the form not taking all available space. The form height is used to let the form input to expand based on the form height.
App/src/pages/settings/ExitSurvey/ExitSurveyResponsePage.tsx
Lines 73 to 81 in 420c2a1
The form height gets the window height and then subtracts it from the inset top. However, the window height on Android doesn't take the inset top height into account, so subtracting it from the inset top will make it smaller. We face this similar issue in #14563 too.

Another issue I noticed is that on iOS, the input can overlap with the button.

This is because recently, we have a PR that adds another bottom space for the button, but we didn't include the calculation yet to the max input height calculation.
App/src/pages/settings/ExitSurvey/ExitSurveyResponsePage.tsx
Lines 82 to 93 in 420c2a1
What changes do you think we should make in order to solve the problem?
Add
StatusBar.currentHeightto window height.StatusBar.currentHeightdoesn't exist on other platforms.OR
We can remove the
formMaxHeightand the max height style and get the form height from the formonLayout.The
onLayoutwill be used inFormWrapper>FormElement.App/src/components/Form/FormWrapper.tsx
Lines 107 to 111 in 420c2a1
But the initial value of
formHeightis 0, so there could be some "blinking".To fix the iOS issue, we need to include the bottom padding to
responseInputMaxHeight.melvin-bot commentedon Aug 16, 2024
@JmillsExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon Aug 20, 2024
@JmillsExpensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
melvin-bot commentedon Aug 21, 2024
Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.
12 remaining items
bernhardoj commentedon Aug 24, 2024
PR is ready
cc: @rayane-djouah
rayane-d commentedon Sep 9, 2024
Note
The production deploy automation failed: This should be on [HOLD for Payment 2024-09-12] according to #48515 production deploy checklist, confirmed in #47957 (comment)
cc @JmillsExpensify
rayane-d commentedon Sep 10, 2024
@JmillsExpensify Friendly bump on updating the issue labels and title. Thanks!
rayane-d commentedon Sep 17, 2024
Checklist
Regression Test Proposal
Do we agree 👍 or 👎
rayane-d commentedon Sep 17, 2024
@JmillsExpensify Friendly bump
JmillsExpensify commentedon Sep 18, 2024
Payment summary:
JmillsExpensify commentedon Sep 18, 2024
Offer sent for @rayane-djouah
rayane-d commentedon Sep 18, 2024
@JmillsExpensify Offer accepted, Thanks
JmillsExpensify commentedon Sep 18, 2024
All paid out. I'm going to pass on a regression test for this one given the polish nature of this bug. @bernhardoj please submit a request via New Expensify and we'll make sure your payment is processed.
bernhardoj commentedon Sep 18, 2024
Requested in ND.
garrettmknight commentedon Sep 18, 2024
Payment summary:
JmillsExpensify commentedon Sep 18, 2024
$250 approved for @bernhardoj