Fix performance bug.
This commit is contained in:
parent
b311ea29d6
commit
c79040a961
|
@ -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)
|
||||
})
|
||||
}
|
||||
list.Layout(gtx, len(labels), func(i int) {
|
||||
labels[i].Layout(gtx)
|
||||
})
|
||||
})
|
||||
})
|
||||
w.Update(gtx.Ops)
|
||||
|
|
Loading…
Reference in New Issue
Block a user