Merge branch 'hotfix/radioBox' into 'release/20_1_0'
fixed bug within radiobox See merge request BPHV_MIPS/vds_ios!284
This commit is contained in:
commit
307ac909a8
@ -71,13 +71,13 @@ open class RadioBoxGroup: SelectorGroupBase<RadioBoxItem>, SelectorGroupSingleSe
|
|||||||
mainStackView.axis = .horizontal
|
mainStackView.axis = .horizontal
|
||||||
mainStackView.distribution = .fillEqually
|
mainStackView.distribution = .fillEqually
|
||||||
} else {
|
} else {
|
||||||
if UIDevice.current.orientation.isPortrait || UIDevice.current.orientation == .unknown {
|
let orientation = UIDevice.current.orientation
|
||||||
mainStackView.axis = .vertical
|
if orientation == .landscapeLeft || orientation == .landscapeRight {
|
||||||
mainStackView.distribution = .fill
|
|
||||||
|
|
||||||
} else {
|
|
||||||
mainStackView.axis = .horizontal
|
mainStackView.axis = .horizontal
|
||||||
mainStackView.distribution = .fillEqually
|
mainStackView.distribution = .fillEqually
|
||||||
|
} else {
|
||||||
|
mainStackView.axis = .vertical
|
||||||
|
mainStackView.distribution = .fill
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user