Skip to content

Commit

Permalink
fix "Composer goes to the top on pressing expand"
Browse files Browse the repository at this point in the history
  • Loading branch information
aimane-chnaif committed Oct 5, 2022
1 parent f710d78 commit f742741
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/OfflineWithFeedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const OfflineWithFeedback = (props) => {
return (
<View style={props.style}>
{!hideChildren && (
<View style={needsOpacity ? styles.offlineFeedback.pending : {}}>
<View style={[needsOpacity ? styles.offlineFeedback.pending : {}, props.contentContainerStyle]}>
{children}
</View>
)}
Expand Down
2 changes: 2 additions & 0 deletions src/pages/home/report/ReportFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ class ReportFooter extends React.Component {
<SwipeableView onSwipeDown={Keyboard.dismiss}>
<OfflineWithFeedback
pendingAction={this.props.addWorkspaceRoomPendingAction}
style={this.props.isComposerFullSize && styles.chatItemFullComposeRow}
contentContainerStyle={this.props.isComposerFullSize && styles.flex1}
>
<ReportActionCompose
onSubmit={this.props.onSubmitComment}
Expand Down

0 comments on commit f742741

Please sign in to comment.