Skip to content

Commit

Permalink
Also fix the alignment when resizing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jul 24, 2023
1 parent 8f67578 commit 55189cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion canvas/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 55189cb

Please sign in to comment.