Revert "update"

This commit is contained in:
Wu Zhong
2017-11-23 18:12:32 +08:00
committed by GitHub
parent 2a19c707fa
commit c212af8cee
+1 -2
View File
@@ -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) {