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

Method scrollCursorToRight

texteditor/nav.go:942–945  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

940// scrollCursorToRight tells any parent scroll layout to scroll to get cursor
941// at right of view to extent possible -- returns true if scrolled.
942func (ed *Editor) scrollCursorToRight() bool {
943 curBBox := ed.cursorBBox(ed.CursorPos)
944 return ed.scrollToRight(curBBox.Max.X)
945}

Callers 3

cursorStartLineMethod · 0.95
cursorEndLineMethod · 0.95

Calls 2

cursorBBoxMethod · 0.95
scrollToRightMethod · 0.95

Tested by

no test coverage detected