From af2c5cd368d09b083f1f9712d770edc20ab2d39e Mon Sep 17 00:00:00 2001 From: vasavk Date: Wed, 28 Feb 2024 16:39:44 +0530 Subject: [PATCH] Digital ACT-191 ONEAPP-6682 story: Fixed minor issue for TextArea height --- VDS/Components/TextFields/TextArea/TextArea.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VDS/Components/TextFields/TextArea/TextArea.swift b/VDS/Components/TextFields/TextArea/TextArea.swift index aee4ab9a..92f5525a 100644 --- a/VDS/Components/TextFields/TextArea/TextArea.swift +++ b/VDS/Components/TextFields/TextArea/TextArea.swift @@ -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