public clampScrollOffsetFor(totalLines as Long, viewHeight as Int, topInset as Int = 0, bottomInset as Int = 0) as Void
Clamps the current scroll offset to the valid range.