From be22e7854333a9f3a807ff0ccbb471da3283e48a Mon Sep 17 00:00:00 2001 From: Mathias Claassen Date: Mon, 21 Dec 2020 10:11:32 -0300 Subject: [PATCH] Modify hugging priority for PasswordRow Fixes #2125 --- Source/Rows/FieldsRow.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Rows/FieldsRow.swift b/Source/Rows/FieldsRow.swift index a06699024..171b34759 100644 --- a/Source/Rows/FieldsRow.swift +++ b/Source/Rows/FieldsRow.swift @@ -138,7 +138,9 @@ open class PasswordCell: _FieldCell, CellType { textField.autocapitalizationType = .none textField.keyboardType = .asciiCapable textField.isSecureTextEntry = true - textField.adjustsFontSizeToFitWidth = true + if let textLabel = textLabel { + textField.setContentHuggingPriority(textLabel.contentHuggingPriority(for: .horizontal) - 1, for: .horizontal) + } if #available(iOS 11,*) { textField.textContentType = .password }