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 committed Oct 9, 2023
1 parent df6e029 commit e4c8450
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 e4c8450

Please sign in to comment.