fixed button issue
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
3255e36e51
commit
66673cb294
@ -48,7 +48,6 @@ public class PickerSelectorView<EnumType: RawRepresentable>: UIStackView, Picker
|
|||||||
instance.size = .small
|
instance.size = .small
|
||||||
instance.use = .secondary
|
instance.use = .secondary
|
||||||
instance.text = "Select"
|
instance.text = "Select"
|
||||||
instance.width = 150
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public var text: String = "" {
|
public var text: String = "" {
|
||||||
@ -76,9 +75,10 @@ public class PickerSelectorView<EnumType: RawRepresentable>: UIStackView, Picker
|
|||||||
label.text = title
|
label.text = title
|
||||||
let buttonWrapper = View()
|
let buttonWrapper = View()
|
||||||
buttonWrapper.addSubview(button)
|
buttonWrapper.addSubview(button)
|
||||||
|
buttonWrapper.height(32)
|
||||||
button.pinTop()
|
button.pinTop()
|
||||||
button.pinBottom()
|
|
||||||
button.pinTrailing()
|
button.pinTrailing()
|
||||||
|
button.pinBottom()
|
||||||
button.pinLeadingGreaterThanOrEqualTo(anchor: buttonWrapper.leadingAnchor)
|
button.pinLeadingGreaterThanOrEqualTo(anchor: buttonWrapper.leadingAnchor)
|
||||||
updateSelectedIndex()
|
updateSelectedIndex()
|
||||||
addArrangedSubview(label)
|
addArrangedSubview(label)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user