CXTDT-552070 - Text Area - Container heights
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
000e4cdefa
commit
b80dcda680
@ -239,7 +239,7 @@ open class EntryFieldBase: Control, Changeable, FormFieldInternalValidatable {
|
||||
//this is the horizontal stack that contains
|
||||
//the left, InputContainer, Icons, Buttons
|
||||
container.addSubview(containerStackView)
|
||||
containerStackView.pinToSuperView(.uniform(12))
|
||||
containerStackView.pinToSuperView(.uniform(VDSLayout.space3X))
|
||||
|
||||
//add the view to add input fields
|
||||
containerStackView.addArrangedSubview(controlContainerView)
|
||||
|
||||
@ -86,15 +86,16 @@ open class TextArea: EntryFieldBase {
|
||||
case twoX = "2X"
|
||||
case fourX = "4X"
|
||||
case eightX = "8X"
|
||||
var containerVerticalPadding: CGFloat { VDSLayout.space3X * 2 }
|
||||
|
||||
var value: CGFloat {
|
||||
switch self {
|
||||
case .twoX:
|
||||
88
|
||||
88 - containerVerticalPadding
|
||||
case .fourX:
|
||||
176
|
||||
176 - containerVerticalPadding
|
||||
case .eightX:
|
||||
352
|
||||
352 - containerVerticalPadding
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -176,7 +177,7 @@ open class TextArea: EntryFieldBase {
|
||||
.pinBottom(0, .defaultHigh)
|
||||
textView.isScrollEnabled = true
|
||||
textView.autocorrectionType = .no
|
||||
textViewHeightConstraint = textView.heightAnchor.constraint(greaterThanOrEqualToConstant: containerSize.height)
|
||||
textViewHeightConstraint = textView.heightAnchor.constraint(greaterThanOrEqualToConstant: Height.twoX.value)
|
||||
textViewHeightConstraint?.isActive = true
|
||||
backgroundColorConfiguration.setSurfaceColors(VDSColor.feedbackSuccessBackgroundOnlight, VDSColor.feedbackSuccessBackgroundOndark, forState: .success)
|
||||
borderColorConfiguration.setSurfaceColors(VDSColor.feedbackSuccessOnlight, VDSColor.feedbackSuccessOndark, forState: .success)
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
----------------
|
||||
- CXTDT-552068 - Text Area - Text padding
|
||||
- CXTDT-552074 - Text Area - Tooltip
|
||||
|
||||
- CXTDT-552070 - Text Area - Container heights
|
||||
1.0.60
|
||||
----------------
|
||||
- CXTDT-544442 - Button Icon - Selected state needs to allow custom color
|
||||
|
||||
Loading…
Reference in New Issue
Block a user