Skip to content

Commit

Permalink
Merge pull request #31608 from ikevin127/fix/31441
Browse files Browse the repository at this point in the history
iOS - Task - Scroll bar in the task confirmation page is on the left
  • Loading branch information
Li357 authored Nov 22, 2023
2 parents 6aa94c9 + 72331df commit 14abfa1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/pages/tasks/NewTaskPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,14 @@ function NewTaskPage(props) {
Navigation.goBack(ROUTES.NEW_TASK_DETAILS);
}}
/>
<ScrollView contentContainerStyle={styles.flexGrow1}>
<ScrollView
contentContainerStyle={styles.flexGrow1}
// on iOS, navigation animation sometimes cause the scrollbar to appear
// on middle/left side of scrollview. scrollIndicatorInsets with right
// to closest value to 0 fixes this issue, 0 (default) doesn't work
// See: https://github.com/Expensify/App/issues/31441
scrollIndicatorInsets={{right: Number.MIN_VALUE}}
>
<View style={[styles.flex1]}>
<View style={styles.mb5}>
<MenuItemWithTopDescription
Expand Down

0 comments on commit 14abfa1

Please sign in to comment.