scrollCursorToTop tells any parent scroll layout to scroll to get cursor at top of view to extent possible -- returns true if scrolled.
()
| 884 | // scrollCursorToTop tells any parent scroll layout to scroll to get cursor |
| 885 | // at top of view to extent possible -- returns true if scrolled. |
| 886 | func (ed *Editor) scrollCursorToTop() bool { |
| 887 | curBBox := ed.cursorBBox(ed.CursorPos) |
| 888 | return ed.scrollToTop(curBBox.Min.Y) |
| 889 | } |
| 890 | |
| 891 | // scrollToBottom tells any parent scroll layout to scroll to get given |
| 892 | // vertical coordinate at bottom of view to extent possible -- returns true if |
no test coverage detected