didLayout method
void
didLayout()
Implementation
void didLayout() {
scrollableViewportSize = constraints.constrain(Size(
_contentSize!.width +
renderStyle.paddingLeft.computedValue +
renderStyle.paddingRight.computedValue,
_contentSize!.height +
renderStyle.paddingTop.computedValue +
renderStyle.paddingBottom.computedValue));
setUpOverflowScroller(scrollableSize, scrollableViewportSize);
if (positionedHolder != null &&
renderStyle.position != CSSPositionType.sticky) {
// Make position holder preferred size equal to current element boundary size except sticky element.
positionedHolder!.preferredSize = Size.copy(size);
}
dispatchResize(contentSize, boxSize ?? Size.zero);
if (isSelfSizeChanged) {
renderStyle.markTransformMatrixNeedsUpdate();
// Rebuild box decoration when size changes so percentage-based border-radius
// (and other size-dependent decoration fields) recompute with the new box size.
renderStyle.resetBoxDecoration();
}
}