updating the model to set the TwoButtonModel to fillContainer if needed
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
d81daf1df3
commit
38907c7ac1
@ -29,8 +29,8 @@
|
|||||||
|
|
||||||
if let _ = molecule as? ButtonModel {
|
if let _ = molecule as? ButtonModel {
|
||||||
horizontalAlignment = .fill
|
horizontalAlignment = .fill
|
||||||
} else if let model = molecule as? TwoButtonViewModel,
|
} else if let model = molecule as? TwoButtonViewModel {
|
||||||
model.primaryButton == nil || model.secondaryButton == nil {
|
model.fillContainer = true
|
||||||
horizontalAlignment = .fill
|
horizontalAlignment = .fill
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user