Skip to content

Commit

Permalink
fix: Apply bottomOffset when keyboard is shown
Browse files Browse the repository at this point in the history
fix: Apply bottomOffset when keyboard is shown
  • Loading branch information
Johan-dutoit authored Mar 23, 2023
2 parents d1b17f8 + dd8ac1c commit 72e0b14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/GiftedChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ class GiftedChat<TMessage extends IMessage = IMessage> extends React.Component<
this.setKeyboardHeight(
e.endCoordinates ? e.endCoordinates.height : e.end.height,
)
this.setBottomOffset(this.props.bottomOffset != null ? this.props.bottomOffset : 1)
const newMessagesContainerHeight = this.getMessagesContainerHeightWithKeyboard()
this.setState({
messagesContainerHeight: newMessagesContainerHeight,
Expand Down

0 comments on commit 72e0b14

Please sign in to comment.