scrollToRow method
Implementation
void scrollToRow(int row, TextDocument document) {
viewportStartRow = row.clamp(0, maxViewportStartRow(document));
}
void scrollToRow(int row, TextDocument document) {
viewportStartRow = row.clamp(0, maxViewportStartRow(document));
}