diff --git a/internal/widget/scroller.go b/internal/widget/scroller.go index 214fc55611..ee380b1f1e 100644 --- a/internal/widget/scroller.go +++ b/internal/widget/scroller.go @@ -496,10 +496,10 @@ func (s *Scroll) Resize(sz fyne.Size) { s.refreshBars() } -// SetOffset will update the location of the content of this scroll container. +// ScrollToOffset will update the location of the content of this scroll container. // // Since: 2.6 -func (s *Scroll) SetOffset(p fyne.Position) { +func (s *Scroll) ScrollToOffset(p fyne.Position) { if s.Offset.Subtract(p).IsZero() { return } diff --git a/widget/entry.go b/widget/entry.go index b5e3e0b475..dbc7afdd1d 100644 --- a/widget/entry.go +++ b/widget/entry.go @@ -1996,7 +1996,7 @@ func (r *entryContentRenderer) ensureCursorVisible() { move.DY += cy2 - (offset.Y + size.Height) } if r.content.scroll.Content != nil { - r.content.scroll.SetOffset(r.content.scroll.Offset.Add(move)) + r.content.scroll.ScrollToOffset(r.content.scroll.Offset.Add(move)) } }