scrollToPosition abstract method

void scrollToPosition(
  1. int newPosition
)

Scrolls the scrollbar into the new position.

Calling this may cause reflow, and should be done only in a batched domWrite block or DomService's updateLayout callbacks.

Implementation

void scrollToPosition(int newPosition);