mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
Revert "update"
This commit is contained in:
@@ -421,7 +421,7 @@ open class MessageInputBar: UIView {
|
||||
open func calculateIntrinsicContentSize() -> CGSize {
|
||||
|
||||
let maxTextViewSize = CGSize(width: inputTextView.bounds.width, height: .greatestFiniteMagnitude)
|
||||
var heightToFit = inputTextView.sizeThatFits(maxTextViewSize).height.rounded() + padding.top + padding.bottom + textViewPadding.bottom + topStackView.bounds.height + bottomStackView.bounds.height
|
||||
var heightToFit = inputTextView.sizeThatFits(maxTextViewSize).height.rounded()
|
||||
if heightToFit >= maxHeight {
|
||||
if !isOverMaxTextViewHeight {
|
||||
textViewHeightAnchor?.isActive = true
|
||||
@@ -546,7 +546,6 @@ open class MessageInputBar: UIView {
|
||||
guard superview != nil else { return }
|
||||
topStackView.layoutIfNeeded()
|
||||
}
|
||||
invalidateIntrinsicContentSize()
|
||||
}
|
||||
|
||||
performLayout(animated) {
|
||||
|
||||
Reference in New Issue
Block a user