From 8205f3415564478f4c5ba04f0d30d9ba9214e922 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Wed, 29 Jan 2025 10:37:28 +0000 Subject: [PATCH] Rename to match List and GridWrap --- internal/widget/scroller.go | 4 ++-- widget/entry.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)) } }