propagateSize method

void propagateSize()
inherited

Implementation

void propagateSize() {
  // add option for this.
  if (artboard == this) {
    return;
  }
  forEachChild((child) {
    // Don't propagate down to children of nested layout components
    // or groups
    if (child is LayoutComponent || child.coreType == NodeBase.typeKey) {
      return false;
    }
    if (child is Sizable) {
      (child as Sizable).controlSize(animates && _layoutSize == Size.zero
          ? Size(animationData.toBounds.width, animationData.toBounds.height)
          : _layoutSize);
    }
    return true;
  });
}