Skip to content

Commit ad9075b

Browse files
j-piaseckitomekzaw
andauthored
Update android/src/main/new_arch/react/renderer/components/RNLiveMarkdownSpec/MarkdownTextInputDecoratorShadowNode.cpp
Co-authored-by: Tomek Zawadzki <tomekzawadzki98@gmail.com>
1 parent c777908 commit ad9075b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/new_arch/react/renderer/components/RNLiveMarkdownSpec/MarkdownTextInputDecoratorShadowNode.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ void MarkdownTextInputDecoratorShadowNode::layout(LayoutContext layoutContext) {
111111
auto mutableChild = std::const_pointer_cast<YogaLayoutableShadowNode>(child);
112112

113113
// TODO: this may not be the correct way to do this
114-
setLayoutMetrics(child->getLayoutMetrics());
115-
116114
auto childMetrics = child->getLayoutMetrics();
115+
setLayoutMetrics(childMetrics); // makes a copy
116+
117117
childMetrics.frame.origin = Point{};
118118
mutableChild->setLayoutMetrics(childMetrics);
119119
}

0 commit comments

Comments
 (0)