Skip to content

Commit 7464f6e

Browse files
authored
Merge pull request #311 from Expensify/shawn-flexEnd
Make comments start at bottom of container
2 parents 302b928 + 0478690 commit 7464f6e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/page/home/report/ReportHistoryView.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ class ReportHistoryView extends React.Component {
147147
}}
148148
onContentSizeChange={this.scrollToListBottom}
149149
bounces={false}
150-
contentContainerStyle={{
151-
paddingVertical: 16
152-
}}
150+
contentContainerStyle={[styles.chatContentScrollView]}
153151
>
154152
{_.chain(this.props.reportHistory).sortBy('sequenceNumber').map((item, index) => (
155153
<ReportHistoryItem

src/style/StyleSheet.js

+6
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,12 @@ const styles = {
448448
justifyContent: 'flex-end',
449449
},
450450

451+
chatContentScrollView: {
452+
flexGrow: 1,
453+
justifyContent: 'flex-end',
454+
paddingVertical: 16,
455+
},
456+
451457
chatContentEmpty: {
452458
paddingTop: 16,
453459
paddingBottom: 16,

0 commit comments

Comments
 (0)