Skip to content

Commit cb2469b

Browse files
j-piaseckitomekzaw
andauthored
Update apple/MarkdownTextInputDecoratorShadowNode.mm
Co-authored-by: Tomek Zawadzki <tomekzawadzki98@gmail.com>
1 parent ad9075b commit cb2469b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apple/MarkdownTextInputDecoratorShadowNode.mm

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@
104104
applyMarkdown(mutableChild, layoutContext);
105105

106106
// TODO: this may not be the correct way to do this
107-
setLayoutMetrics(child->getLayoutMetrics());
108-
109107
auto childMetrics = child->getLayoutMetrics();
108+
setLayoutMetrics(childMetrics);
109+
110110
childMetrics.frame.origin = Point{};
111111
mutableChild->setLayoutMetrics(childMetrics);
112112
}

0 commit comments

Comments
 (0)