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:
Matt Bruce 2024-01-29 12:59:25 -06:00
parent d81daf1df3
commit 38907c7ac1

View File

@ -29,8 +29,8 @@
if let _ = molecule as? ButtonModel {
horizontalAlignment = .fill
} else if let model = molecule as? TwoButtonViewModel,
model.primaryButton == nil || model.secondaryButton == nil {
} else if let model = molecule as? TwoButtonViewModel {
model.fillContainer = true
horizontalAlignment = .fill
}
}