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
[$250] "Next" and "split" button moves a bit when navigate back #41855
The confirmation page uses BaseOptionsSelector which uses FixedFooter.
In FixedFooter, we add a bottom padding if the keyboard shown state is true. When we move to the confirmation page while the keyboard is shown, both the padding-bottom from FixedFooter and the confirmation page itself are added. After the keyboard state is fully hidden, the padding-bottom from FixedFooter is gone, so the button moves down a bit.
In the money request participants page, we are using BaseSelectionList and only add the padding-bottom if the keyboard is hidden. The list footer also uses FixedFooter.
So, when we open/close the keyboard, you will see the button move up/down based on the keyboard state.
I believe the reason we add the padding-bottom in FixedFooter only when the keyboard is shown is because the padding-bottom in BaseSelectionList is gone when the keyboard is shown. It's to replace the removed padding-bottom so the list footer content has a padding-bottom.
Without padding-bottom (if we remove the padding-bottom logic from FixedFooter):
The reason we don't apply padding-bottom in BaseSelectionList when the keyboard is shown is to fix a small blank space above the keyboard. This is because of the padding bottom that we apply to the list. If we apply it (includeSafeAreaPaddingBottom) to the ScreenWrapper, the issue won't happen
What changes do you think we should make in order to solve the problem?
Remove the padding-bottom logic based on the keyboard state from FixedFooter. Then, we will apply the padding-bottom in BaseSelectionList if there is a footer.
What alternative solutions did you explore? (Optional)
Remove the safe area padding bottom from BaseSelectionList and enable includeSafeAreaPaddingBottom to every page that uses BaseSelectionList. Currently, all pages that use BaseSelectionList disables includeSafeAreaPaddingBottom to not have double padding bottom.
@alexpensify I think this fits as a general improvement to the UI and not particularly tied to any project. It makes the UI looks glitchy and unpolished. Can we get a C+ assigned to review the proposal? Also I think we need to tackle this everywhere in the UI where it happens, and not just the two pages mentioned in this issue.
changed the title [-]"Next" and "split" button moves a bit when navigate back[/-][+][$250] "Next" and "split" button moves a bit when navigate back[/+]on May 10, 2024
Thanks, @kevinksullivan for the help here. I'm back online and taking over again as the BZ member. Tomorrow, I'll start the payment process since it looks like automation failed in this GH.
Activity
melvin-bot commentedon May 8, 2024
Triggered auto assignment to @alexpensify (
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.bernhardoj commentedon May 9, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The next and split button moves down when navigating between pages while a keyboard is open.
What is the root cause of that problem?
The button is wrapped with FixedFooter.
App/src/components/FixedFooter.tsx
Lines 17 to 29 in 807c945
The confirmation page uses BaseOptionsSelector which uses FixedFooter.
In FixedFooter, we add a bottom padding if the keyboard shown state is true. When we move to the confirmation page while the keyboard is shown, both the padding-bottom from FixedFooter and the confirmation page itself are added. After the keyboard state is fully hidden, the padding-bottom from FixedFooter is gone, so the button moves down a bit.
In the money request participants page, we are using BaseSelectionList and only add the padding-bottom if the keyboard is hidden. The list footer also uses FixedFooter.
App/src/components/SelectionList/BaseSelectionList.tsx
Lines 517 to 518 in 807c945
So, when we open/close the keyboard, you will see the button move up/down based on the keyboard state.
I believe the reason we add the padding-bottom in FixedFooter only when the keyboard is shown is because the padding-bottom in BaseSelectionList is gone when the keyboard is shown. It's to replace the removed padding-bottom so the list footer content has a padding-bottom.
Without padding-bottom (if we remove the padding-bottom logic from FixedFooter):

The reason we don't apply padding-bottom in BaseSelectionList when the keyboard is shown is to fix a small blank space above the keyboard. This is because of the padding bottom that we apply to the list. If we apply it (includeSafeAreaPaddingBottom) to the ScreenWrapper, the issue won't happen
What changes do you think we should make in order to solve the problem?
Remove the padding-bottom logic based on the keyboard state from FixedFooter. Then, we will apply the padding-bottom in BaseSelectionList if there is a footer.
App/src/components/SelectionList/BaseSelectionList.tsx
Line 518 in 807c945
What alternative solutions did you explore? (Optional)
Remove the safe area padding bottom from BaseSelectionList and enable includeSafeAreaPaddingBottom to every page that uses BaseSelectionList. Currently, all pages that use BaseSelectionList disables includeSafeAreaPaddingBottom to not have double padding bottom.
alexpensify commentedon May 10, 2024
On my testing list, I'll get to it soon.
youssef-lr commentedon May 10, 2024
@alexpensify I think this fits as a general improvement to the UI and not particularly tied to any project. It makes the UI looks glitchy and unpolished. Can we get a C+ assigned to review the proposal? Also I think we need to tackle this everywhere in the UI where it happens, and not just the two pages mentioned in this issue.
melvin-bot commentedon May 10, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01419f469e7473b289
[-]"Next" and "split" button moves a bit when navigate back[/-][+][$250] "Next" and "split" button moves a bit when navigate back[/+]melvin-bot commentedon May 10, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws (
External)18 remaining items
melvin-bot commentedon May 17, 2024
Triggered auto assignment to @kevinksullivan (
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.alexpensify commentedon May 17, 2024
Heads up, I will be offline until Tuesday, May 28, 2024, and will not actively watch over this GitHub during that period.
@kevinksullivan - While I'm offline, I need help here completing the payment process after this one clears the 7-day period. Thanks!
alexpensify commentedon May 28, 2024
Thanks, @kevinksullivan for the help here. I'm back online and taking over again as the BZ member. Tomorrow, I'll start the payment process since it looks like automation failed in this GH.
alexpensify commentedon May 29, 2024
Payouts due: 2024-05-29
Upwork job is here.
alexpensify commentedon May 29, 2024
I've paid @bernhardoj via Upwork. @Ollyws, please accept the invite and I can complete the payment process. Thanks!
Ollyws commentedon May 30, 2024
Requested in ND.
alexpensify commentedon May 30, 2024
Awesome, and sorry for the confusion. I didn't see you listed in the SO. Closing since the final payment will happen in Chat.
JmillsExpensify commentedon May 31, 2024
$250 approved for @Ollyws