Skip to content

Commit

Permalink
Merge pull request #481 from wordpress-mobile/issue/438-pasting-block…
Browse files Browse the repository at this point in the history
…-height-ios

Make Aztec send height information to JS after pasting text
  • Loading branch information
etoledom authored Jan 24, 2019
2 parents 5285515 + 3679cee commit b643c27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions react-native-aztec/ios/RNTAztecView/RCTAztecView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ extension RCTAztecView: UITextViewDelegate {
forceTypingAttributesIfNeeded()
propagateFormatChanges()
propagateContentChanges()
//Necessary to send height information to JS after pasting text.
textView.setNeedsLayout()
}

func textViewDidBeginEditing(_ textView: UITextView) {
Expand Down

0 comments on commit b643c27

Please sign in to comment.