Skip to content

Commit

Permalink
Correctly get canvas for inherited text grid
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jan 20, 2025
1 parent 40be72d commit 621fc22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/textgrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ func (t *textGridRenderer) refresh(obj fyne.CanvasObject) {
if t.current == nil {
if fyne.CurrentApp() != nil && fyne.CurrentApp().Driver() != nil {
// cache canvas for this widget, so we don't look it up many times for every cell/row refresh!
t.current = fyne.CurrentApp().Driver().CanvasForObject(t.text)
t.current = fyne.CurrentApp().Driver().CanvasForObject(t.text.super())
}

if t.current == nil {
Expand Down

0 comments on commit 621fc22

Please sign in to comment.