fixed bug for priority on layout

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-09-05 11:47:58 -05:00
parent 945fbc05dc
commit 1d010d69ea
2 changed files with 12 additions and 2 deletions

View File

@ -129,7 +129,12 @@ open class InputField: EntryFieldBase, UITextFieldDelegate {
minWidthConstraint?.isActive = true
controlContainerView.addSubview(textField)
textField.pinToSuperView()
textField
.pinTop()
.pinLeading()
.pinTrailingLessThanOrEqualTo(nil, 0, .defaultHigh)
.pinBottom(0, .defaultHigh)
textField.heightAnchor.constraint(equalToConstant: 20).isActive = true
textField
.textPublisher

View File

@ -76,7 +76,12 @@ open class TextArea: EntryFieldBase {
minWidthConstraint?.isActive = true
controlContainerView.addSubview(textView)
textView.pinToSuperView()
textView
.pinTop()
.pinLeading()
.pinTrailingLessThanOrEqualTo(nil, 0, .defaultHigh)
.pinBottom(0, .defaultHigh)
textViewHeightConstraint = textView.heightAnchor.constraint(greaterThanOrEqualToConstant: 64)
textViewHeightConstraint?.isActive = true
backgroundColorConfiguration.setSurfaceColors(VDSColor.feedbackSuccessBackgroundOnlight, VDSColor.feedbackSuccessBackgroundOndark, forState: .success)