Skip to content

Commit

Permalink
Rename to match List and GridWrap
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jan 29, 2025
1 parent 8ce713e commit 8205f34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/widget/scroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion widget/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down

0 comments on commit 8205f34

Please sign in to comment.