getPositionParentData static method

RenderLayoutParentData getPositionParentData(
  1. RenderBoxModel renderBoxModel,
  2. RenderLayoutParentData parentData
)

Implementation

static RenderLayoutParentData getPositionParentData(RenderBoxModel renderBoxModel, RenderLayoutParentData parentData) {
  CSSPositionType positionType = renderBoxModel.renderStyle.position;
  parentData.isPositioned = positionType == CSSPositionType.absolute || positionType == CSSPositionType.fixed;
  return parentData;
}