Home
last modified time | relevance | path

Searched refs:flexSize (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/flex/
H A Dflex_layout_algorithm.cpp668 float flexSize = in SecondaryMeasureByProperty() local
673 if (!NearZero(flexSize) && childLayoutWrapper->IsActive()) { in SecondaryMeasureByProperty()
674 flexSize += GetChildMainAxisSize(childLayoutWrapper); in SecondaryMeasureByProperty()
676 CheckBlankAndKeepMin(childLayoutWrapper, flexSize); in SecondaryMeasureByProperty()
677 if (LessOrEqual(flexSize, 0.0f)) { in SecondaryMeasureByProperty()
686 if (IsKeepMinSize(childLayoutWrapper, flexSize)) { in SecondaryMeasureByProperty()
689 reserveMainAxisSize -= (flexSize - shrinkSize); in SecondaryMeasureByProperty()
787 if (GreatOrEqual(blankMin->ConvertToPx(), flexSize)) { in CheckBlankAndKeepMin()
788 flexSize = blankMin->ConvertToPx(); in CheckBlankAndKeepMin()
797 if (GreatOrEqual(minSize, flexSize)) { in IsKeepMinSize()
[all …]
H A Dflex_layout_algorithm.h94 void CheckBlankAndKeepMin(const RefPtr<LayoutWrapper>& childLayoutWrapper, float& flexSize);
97 bool IsKeepMinSize(const RefPtr<LayoutWrapper>& childLayoutWrapper, float& flexSize);
H A Dwrap_layout_algorithm.cpp674 float flexSize = itemFlex * remainSpace / flexItemProperties.totalGrow; in CalcFlexGrowLayout() local
675 flexSize += GetItemMainAxisLength(itemWrapper->GetGeometryNode()); in CalcFlexGrowLayout()
678 selfIdealSize.SetWidth(flexSize); in CalcFlexGrowLayout()
680 selfIdealSize.SetHeight(flexSize); in CalcFlexGrowLayout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/flex/
H A Drender_flex.cpp473 double flexSize = 0.0; in RelayoutForStretchFlexNode() local
474flexSize = flexItem == flexItemProperties.lastGrowChild ? remainSpace - allocatedFlexSpace in RelayoutForStretchFlexNode()
476 RedoLayoutFlexItem(flexItem, flexSize, baselineProperties, allocatedFlexSpace); in RelayoutForStretchFlexNode()
621 double flexSize = (flexItem == lastChild) ? (remainSpace - allocatedFlexSpace) in ResizeItems() local
624 RedoLayoutFlexItem(flexItem, flexSize, baselineProps, allocatedFlexSpace); in ResizeItems()
790 void RenderFlex::RedoLayoutFlexItem(const RefPtr<RenderFlexItem>& flexItem, double flexSize, in RedoLayoutFlexItem() argument
801 if (NearZero(flexSize) && !canItemStretch) { in RedoLayoutFlexItem()
804 auto mainFlexExtent = flexSize + GetMainSize(flexItem); in RedoLayoutFlexItem()
826 allocatedFlexSpace += flexSize; in RedoLayoutFlexItem()
H A Drender_flex.h149 …void RedoLayoutFlexItem(const RefPtr<RenderFlexItem>& flexItem, double flexSize, BaselinePropertie…