not resetting if the current count is correct
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
1932fd7231
commit
d81daf1df3
@ -34,7 +34,6 @@ import VDS
|
|||||||
buttonGroup.alignment = .center
|
buttonGroup.alignment = .center
|
||||||
buttonGroup.rowQuantityPhone = 2
|
buttonGroup.rowQuantityPhone = 2
|
||||||
buttonGroup.rowQuantityTablet = 2
|
buttonGroup.rowQuantityTablet = 2
|
||||||
buttonGroup.childWidth = .percentage(50)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -69,8 +68,12 @@ import VDS
|
|||||||
primaryButton.set(with: primaryModel, delegateObject, additionalData)
|
primaryButton.set(with: primaryModel, delegateObject, additionalData)
|
||||||
buttons.append(primaryButton)
|
buttons.append(primaryButton)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buttonGroup.childWidth = viewModel.fillContainer ? .percentage(100) : nil
|
||||||
|
|
||||||
buttonGroup.buttons = buttons
|
if buttons.count != buttonGroup.buttons.count {
|
||||||
|
buttonGroup.buttons = buttons
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -84,6 +87,7 @@ import VDS
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - MVMCoreViewProtocol
|
// MARK: - MVMCoreViewProtocol
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
public func updateView(_ size: CGFloat) {
|
public func updateView(_ size: CGFloat) {
|
||||||
setNeedsUpdate()
|
setNeedsUpdate()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user