diff options
Diffstat (limited to 'src/ui/render')
-rw-r--r-- | src/ui/render/FlexLayoutRenderObject.cpp | 4 | ||||
-rw-r--r-- | src/ui/render/StackLayoutRenderObject.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/render/FlexLayoutRenderObject.cpp b/src/ui/render/FlexLayoutRenderObject.cpp index ebe60395..6475d005 100644 --- a/src/ui/render/FlexLayoutRenderObject.cpp +++ b/src/ui/render/FlexLayoutRenderObject.cpp @@ -333,7 +333,7 @@ Size FlexLayoutRenderObject::OnMeasureContent( std::vector<FlexChildLayoutData> layout_data_list; for (int i = 0; i < GetChildCount(); i++) { children.push_back(GetChildAt(i)); - layout_data_list.push_back(GetChildLayoutData(i)); + layout_data_list.push_back(GetChildLayoutDataAt(i)); } if (horizontal) { @@ -353,7 +353,7 @@ void FlexLayoutRenderObject::OnLayoutContent(const Rect& content_rect) { std::vector<FlexChildLayoutData> layout_data_list; for (int i = 0; i < child_count; i++) { children.push_back(GetChildAt(i)); - layout_data_list.push_back(GetChildLayoutData(i)); + layout_data_list.push_back(GetChildLayoutDataAt(i)); } if (direction_ == FlexDirection::Horizontal) { diff --git a/src/ui/render/StackLayoutRenderObject.cpp b/src/ui/render/StackLayoutRenderObject.cpp index 6c79716f..fda9a420 100644 --- a/src/ui/render/StackLayoutRenderObject.cpp +++ b/src/ui/render/StackLayoutRenderObject.cpp @@ -35,7 +35,7 @@ Size StackLayoutRenderObject::OnMeasureContent( child_max_size = Max(requirement.min.GetSizeOr0(), child_max_size); for (Index i = 0; i < GetChildCount(); ++i) { - auto child_layout_data = GetChildLayoutData(i); + auto child_layout_data = GetChildLayoutDataAt(i); auto horizontal_stretch = child_layout_data.horizontal.value_or(default_horizontal_alignment_) == Alignment::Stretch; @@ -67,7 +67,7 @@ void StackLayoutRenderObject::OnLayoutContent(const Rect& content_rect) { for (int i = 0; i < count; i++) { const auto child = GetChildAt(i); - const auto& layout_data = GetChildLayoutData(i); + const auto& layout_data = GetChildLayoutDataAt(i); const auto& size = child->GetDesiredSize(); child->Layout(Point{ CalculateAnchorByAlignment( |