Skip to content

Commit

Permalink
fix height (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
shima11 authored Jan 25, 2023
1 parent 0b9c945 commit ad23041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NextGrowingTextView/NextGrowingTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ad23041

Please sign in to comment.