Skip to content

Commit 347455f

Browse files
committed
fix: Corrected iOS flexbox height for align baseline
1 parent e3e6ea3 commit 347455f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/ui/layouts/flexbox-layout/index.ios.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,11 +323,11 @@ export class FlexboxLayout extends FlexboxLayoutBase {
323323
if (this.flexWrap !== FlexWrap.WRAP_REVERSE) {
324324
let marginTop = flexLine._maxBaseline - FlexboxLayout.getBaseline(child);
325325
marginTop = Math.max(marginTop, lp.effectiveMarginTop);
326-
largestHeightInLine = Math.max(largestHeightInLine, child.getActualSize().height + marginTop + lp.effectiveMarginBottom);
326+
largestHeightInLine = Math.max(largestHeightInLine, child.getMeasuredHeight() + marginTop + lp.effectiveMarginBottom);
327327
} else {
328328
let marginBottom = flexLine._maxBaseline - child.getMeasuredHeight() + FlexboxLayout.getBaseline(child);
329329
marginBottom = Math.max(marginBottom, lp.effectiveMarginBottom);
330-
largestHeightInLine = Math.max(largestHeightInLine, child.getActualSize().height + lp.effectiveMarginTop + marginBottom);
330+
largestHeightInLine = Math.max(largestHeightInLine, child.getMeasuredHeight() + lp.effectiveMarginTop + marginBottom);
331331
}
332332
}
333333
flexLine._crossSize = largestHeightInLine;

0 commit comments

Comments
 (0)