updateScrollViewport method

  1. @override
void updateScrollViewport()
inherited

Implementation

@override
void updateScrollViewport() {
  if (maxWidth == null ||
      scroll.bodyRowsHorizontal?.position.hasViewportDimension != true) {
    return;
  }

  final double bodyWidth = maxWidth! - bodyLeftOffset - bodyRightOffset;

  scroll.horizontal!.applyViewportDimension(bodyWidth);

  updateCorrectScrollOffset();
}