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