From 55189cb06100ee670f054453e467df1fbf71db03 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Mon, 24 Jul 2023 23:39:15 +0100 Subject: [PATCH] Also fix the alignment when resizing issue Fixes #3505 --- canvas/image.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/canvas/image.go b/canvas/image.go index e22381fbdf..e3cea6d779 100644 --- a/canvas/image.go +++ b/canvas/image.go @@ -175,7 +175,9 @@ func (i *Image) Resize(s fyne.Size) { if s == i.Size() { return } - if i.FillMode == ImageFillOriginal && i.size.Height > 2 { // don't refresh original scale images after first draw + i.baseObject.Resize(s) + if i.FillMode == ImageFillOriginal && i.size.Height > 2 { // we can just ask for a GPU redraw to align + Refresh(i) return }