Skip to content

Commit

Permalink
add canvas refresh in richtext refresh
Browse files Browse the repository at this point in the history
ensures refresh happens even when segment slice completely replaced
  • Loading branch information
mbaklor authored and andydotxyz committed Oct 18, 2023
1 parent ce03ae0 commit 1b5e667
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions widget/richtext.go
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ func (r *textRenderer) Refresh() {
r.obj.propertyLock.Unlock()

r.Layout(r.obj.Size())
canvas.Refresh(r.obj.super())
}

func (r *textRenderer) layoutRow(texts []fyne.CanvasObject, align fyne.TextAlign, xPos, yPos, lineWidth float32) (float32, float32) {
Expand Down

0 comments on commit 1b5e667

Please sign in to comment.