From dbf02feffc3927052acb8a19e8317734d79453cf Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Tue, 4 Feb 2025 13:23:09 -0300 Subject: [PATCH] Fix a bug with previous GridWrap PR --- widget/gridwrap.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widget/gridwrap.go b/widget/gridwrap.go index b3c68dc03b..23b6a44224 100644 --- a/widget/gridwrap.go +++ b/widget/gridwrap.go @@ -166,11 +166,12 @@ 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() + oldHeight := l.size.Height l.colCountCache = 0 l.BaseWidget.Resize(s) newColCount := l.ColumnCount() - if oldColCount == newColCount && l.size.Height == s.Height { + if oldColCount == newColCount && oldHeight == s.Height { // no content update needed if resizing only horizontally and col count is unchanged return }