Skip to content

Commit

Permalink
get rid of short-circuit return that caused test problems
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Feb 3, 2025
1 parent c3e7536 commit 6b6a438
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions widget/gridwrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,7 @@ func (l *GridWrap) RefreshItem(id GridWrapItemID) {

// Resize is called when this GridWrap should change size. We refresh to ensure invisible items are drawn.
func (l *GridWrap) Resize(s fyne.Size) {
oldColCount := l.ColumnCount()
l.colCountCache = 0
newColCount := l.ColumnCount()

if oldColCount == newColCount && l.size.Height == s.Height {
// no content update needed if resizing only horizontally and col count is unchanged
l.BaseWidget.Resize(s)
return
}

l.BaseWidget.Resize(s)
if l.scroller != nil {
Expand Down

0 comments on commit 6b6a438

Please sign in to comment.