Skip to content

Commit

Permalink
Merge pull request #26728 from allroundexperts/fix-26541
Browse files Browse the repository at this point in the history
fix: wrap distance request inside scrollable view
(cherry picked from commit f67bf9f)
  • Loading branch information
Hayata Suenaga authored and OSBotify committed Sep 5, 2023
1 parent 1ba409a commit 5152c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DistanceRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function DistanceRequest({iou, iouType, report, transaction, mapboxAccessToken})
useEffect(updateGradientVisibility, [scrollContainerHeight, scrollContentHeight]);

return (
<>
<ScrollView contentContainerStyle={styles.flex1}>
<View
style={styles.distanceRequestContainer(scrollContainerMaxHeight)}
onLayout={(event = {}) => setScrollContainerHeight(lodashGet(event, 'nativeEvent.layout.height', 0))}
Expand Down Expand Up @@ -266,7 +266,7 @@ function DistanceRequest({iou, iouType, report, transaction, mapboxAccessToken})
isDisabled={_.size(validatedWaypoints) < 2}
text={translate('common.next')}
/>
</>
</ScrollView>
);
}

Expand Down

0 comments on commit 5152c45

Please sign in to comment.