Skip to content

Commit

Permalink
Update gradient.go comment wording
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Mar 19, 2024
1 parent a7131e8 commit 9934705
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion canvas/gradient.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,14 @@ func (g *RadialGradient) Move(pos fyne.Position) {
repaint(g)
}

// Resize the gradient to a new size. Causes a refresh, as cached textures become invalid on resize.
// Resize resizes the gradient to a new size.
func (g *RadialGradient) Resize(size fyne.Size) {
if size == g.Size() {
return
}
g.baseObject.Resize(size)

// refresh needed to invalidate cached textures
g.Refresh()
}

Expand Down

0 comments on commit 9934705

Please sign in to comment.