Fix text view height issue

This commit is contained in:
Alfonso Grillo
2022-10-19 10:30:20 +02:00
parent 9b9610769d
commit b3c97f63a0
3 changed files with 9 additions and 6 deletions
@@ -139,7 +139,7 @@ class RoomInputToolbarTextView: UITextView {
}
private func updateUI() {
var height = sizeThatFits(CGSize(width: bounds.size.width, height: CGFloat.greatestFiniteMagnitude)).height
var height = contentSize.height
height = minHeight > 0 ? max(height, minHeight) : height
height = maxHeight > 0 ? min(height, maxHeight) : height