Dialog layout works now

This commit is contained in:
Sasha Koshka
2023-01-17 15:55:16 -05:00
parent b7fe28f600
commit 37458f4fde
2 changed files with 38 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ func run () {
container := basic.NewContainer(layouts.Dialog { true, true })
window.Adopt(container)
container.Adopt(basic.NewLabel("you will explode", false), true)
container.Adopt(basic.NewLabel("you will explode", true), true)
cancel := basic.NewButton("Cancel")
cancel.SetEnabled(false)
container.Adopt(cancel, false)