Scroll now has a constructor similar to Cell

This commit is contained in:
2023-04-17 02:13:21 -04:00
parent 5ca3b80e8e
commit 427b5e025d
5 changed files with 8 additions and 12 deletions

View File

@@ -21,7 +21,6 @@ func run () {
file.Close()
if err != nil { panic(err.Error()); return }
scrollContainer := elements.NewScroll(false, true)
document := elements.NewDocument()
document.Adopt (elements.NewLabel (
@@ -60,8 +59,7 @@ func run () {
document.Adopt(elements.NewSwitch("", false), false)
}
scrollContainer.Adopt(document)
window.Adopt(scrollContainer)
window.Adopt(elements.NewScroll(document, false, true))
window.OnClose(tomo.Stop)
window.Show()
}