Digital ACT-191 ONEAPP-6682 story: Fixed minor issue for TextArea height

This commit is contained in:
vasavk 2024-02-28 16:39:44 +05:30
parent 2ff683e087
commit af2c5cd368

View File

@ -288,7 +288,7 @@ extension TextArea: UITextViewDelegate {
if let textViewHeightConstraint, textView.isEditable {
var height = textView.contentSize.height
height = max(height, _minHeight.value)
if height > Height.twoX.value && height < Height.fourX.value {
if height > Height.twoX.value && height <= Height.fourX.value {
textViewHeightConstraint.constant = Height.fourX.value
} else if height > Height.fourX.value {
textViewHeightConstraint.constant = Height.eightX.value