Skip to content

Commit

Permalink
Simplify and optimize code further.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric BAIL committed Apr 14, 2023
1 parent 61b272d commit 85a4329
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions widget/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,8 @@ func (l *listLayout) updateList(refresh bool) {
cells := make([]fyne.CanvasObject, len(visibleRowHeights))

y := offY
for index := range visibleRowHeights {
for index, itemHeight := range visibleRowHeights {
row := index + minRow
itemHeight := visibleRowHeights[index]
size := fyne.NewSize(width, itemHeight)

c, ok := wasVisible[row]
Expand Down

0 comments on commit 85a4329

Please sign in to comment.