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 Nov 17, 2023
1 parent 103eeb8 commit 2efb0f2
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 2efb0f2

Please sign in to comment.