From ad23041c01d51c07701415a682eff7e9cf3e6c4f Mon Sep 17 00:00:00 2001 From: shima Date: Thu, 26 Jan 2023 00:24:34 +0900 Subject: [PATCH] fix height (#107) --- NextGrowingTextView/NextGrowingTextView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NextGrowingTextView/NextGrowingTextView.swift b/NextGrowingTextView/NextGrowingTextView.swift index 2225225..570d0b9 100644 --- a/NextGrowingTextView/NextGrowingTextView.swift +++ b/NextGrowingTextView/NextGrowingTextView.swift @@ -406,7 +406,7 @@ final class PlatterTextView: UIScrollView { if actualTextViewSize.height < state.resolvedMinHeight || !_textView.hasText { containerSize = CGSize(width: actualTextViewSize.width, height: state.resolvedMinHeight) } else if state.resolvedMaxHeight > 0 && actualTextViewSize.height > state.resolvedMaxHeight { - containerSize = CGSize(width: actualTextViewSize.width, height: state.resolvedMinHeight) + containerSize = CGSize(width: actualTextViewSize.width, height: state.resolvedMaxHeight) } else { containerSize = actualTextViewSize }