Merge branch 'bugfix/11_4_0-buttonGroup' into 'release/11_4_0'
added heightConstraint for the twobutton ### Summary Issue with the height of the PrimaryButtonView. ### JIRA Ticket https://onejira.verizon.com/browse/CXTDT-514441 https://onejira.verizon.com/browse/CXTDT-521074 Co-authored-by: Matt Bruce <matt.bruce@verizon.com> See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui/-/merge_requests/1068
This commit is contained in:
commit
80f3524d43
@ -17,11 +17,11 @@ import VDS
|
||||
open var viewModel: TwoButtonViewModel!
|
||||
open var delegateObject: MVMCoreUIDelegateObject?
|
||||
open var additionalData: [AnyHashable : Any]?
|
||||
|
||||
|
||||
open var primaryButton = PillButton()
|
||||
open var secondaryButton = PillButton()
|
||||
private var buttonGroup = VDS.ButtonGroup()
|
||||
|
||||
private var heightConstraint: NSLayoutConstraint?
|
||||
//--------------------------------------------------
|
||||
// MARK: - Lifecycle
|
||||
//--------------------------------------------------
|
||||
@ -34,6 +34,7 @@ import VDS
|
||||
buttonGroup.alignment = .center
|
||||
buttonGroup.rowQuantityPhone = 2
|
||||
buttonGroup.rowQuantityTablet = 2
|
||||
heightConstraint = height(constant: VDS.Button.Size.large.height, priority: .required)
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
@ -70,6 +71,8 @@ import VDS
|
||||
if buttons.count != buttonGroup.buttons.count {
|
||||
buttonGroup.buttons = buttons
|
||||
}
|
||||
|
||||
heightConstraint?.constant = primaryButton.size == .small || secondaryButton.size == .small ? VDS.Button.Size.small.height : VDS.Button.Size.large.height
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user