Skip to content

Commit

Permalink
Make position static behave like position static (facebook#41685)
Browse files Browse the repository at this point in the history
Summary:
X-link: facebook/yoga#1482


This is the final step (that I know of) to get the core features of static working. Here we turn on all of the tests and pass down the correct owner size for the call to `calculateLayoutInternal` that is in `layoutAbsoluteChild`

Reviewed By: NickGerleman

Differential Revision: D51293606
  • Loading branch information
joevilches authored and facebook-github-bot committed Dec 5, 2023
1 parent aef4805 commit 2e37276
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ void layoutAbsoluteChild(
direction,
childWidthSizingMode,
childHeightSizingMode,
childWidth,
childHeight,
containingBlockWidth,
containingBlockHeight,
false,
LayoutPassReason::kAbsMeasureChild,
layoutMarkerData,
Expand All @@ -408,8 +408,8 @@ void layoutAbsoluteChild(
direction,
SizingMode::StretchFit,
SizingMode::StretchFit,
childWidth,
childHeight,
containingBlockWidth,
containingBlockHeight,
true,
LayoutPassReason::kAbsLayout,
layoutMarkerData,
Expand Down

0 comments on commit 2e37276

Please sign in to comment.