Fix performance bug.

This commit is contained in:
Greg 2019-10-10 13:10:58 -04:00
parent b311ea29d6
commit c79040a961

View File

@ -80,11 +80,9 @@ func eventloop() {
resetSysinset(e.Insets)
sysinset.Layout(gtx, func() {
margin.Layout(gtx, func() {
for i := 0; i < len(labels); i++ {
list.Layout(gtx, len(labels), func(i int) {
labels[i].Layout(gtx)
})
}
})
})
w.Update(gtx.Ops)