setMaxScrollableSize method

void setMaxScrollableSize(
  1. Size contentSize
)

Set the size of scrollable overflow area of renderBoxModel

Implementation

void setMaxScrollableSize(Size contentSize) {
  // Scrollable area includes right and bottom padding
  scrollableSize = Size(
    contentSize.width + renderStyle.paddingLeft.computedValue,
    contentSize.height + renderStyle.paddingTop.computedValue
  );
}