MCPcopy Create free account
hub / github.com/cogentcore/core / scrollCursorToBottom

Method scrollCursorToBottom

texteditor/nav.go:901–904  ·  view source on GitHub ↗

scrollCursorToBottom tells any parent scroll layout to scroll to get cursor at bottom of view to extent possible -- returns true if scrolled.

()

Source from the content-addressed store, hash-verified

899// scrollCursorToBottom tells any parent scroll layout to scroll to get cursor
900// at bottom of view to extent possible -- returns true if scrolled.
901func (ed *Editor) scrollCursorToBottom() bool {
902 curBBox := ed.cursorBBox(ed.CursorPos)
903 return ed.scrollToBottom(curBBox.Max.Y)
904}
905
906// scrollToVerticalCenter tells any parent scroll layout to scroll to get given
907// vertical coordinate to center of view to extent possible -- returns true if

Callers 3

cursorPageUpMethod · 0.95
cursorRecenterMethod · 0.95
cursorEndDocMethod · 0.95

Calls 2

cursorBBoxMethod · 0.95
scrollToBottomMethod · 0.95

Tested by

no test coverage detected