(cm, x1, y1, x2, y2)
| 3552 | |
| 3553 | // Scroll a given set of coordinates into view (immediately). |
| 3554 | function scrollIntoView(cm, x1, y1, x2, y2) { |
| 3555 | var scrollPos = calculateScrollPos(cm, x1, y1, x2, y2); |
| 3556 | if (scrollPos.scrollTop != null) setScrollTop(cm, scrollPos.scrollTop); |
| 3557 | if (scrollPos.scrollLeft != null) setScrollLeft(cm, scrollPos.scrollLeft); |
| 3558 | } |
| 3559 | |
| 3560 | // Calculate a new scroll position needed to scroll the given |
| 3561 | // rectangle into view. Returns an object with scrollTop and |
no test coverage detected
searching dependent graphs…