Digital PCT032 defect CXTDT-608227: Set content compression resistance for RadioButton.
This commit is contained in:
parent
f6f3cd53fe
commit
89842ee443
@ -79,6 +79,11 @@ import VDS
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
open override func setup() {
|
open override func setup() {
|
||||||
super.setup()
|
super.setup()
|
||||||
|
|
||||||
|
// Radio button should never be smaller that its content size.
|
||||||
|
setContentCompressionResistancePriority(.required, for: .vertical)
|
||||||
|
setContentCompressionResistancePriority(.required, for: .horizontal)
|
||||||
|
|
||||||
publisher(for: .valueChanged)
|
publisher(for: .valueChanged)
|
||||||
.sink { [weak self] control in
|
.sink { [weak self] control in
|
||||||
guard let self, isEnabled else { return }
|
guard let self, isEnabled else { return }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user