Fixed a bug with positioning of nested views inside <Text>

Summary:
Fixing of recent regression in layout system.
Conseptually, a superview should define frames of child views.

Reviewed By: mmmulani

Differential Revision: D6980128

fbshipit-source-id: e267e966fd46af28db1d3d40939110040b74e33f
This commit is contained in:
Valentin Shergin authored and Facebook Github Bot committed 2018-02-13 23:51:54 -08:00
1 parent 5f48bd84aa
commit 7d20de412b
1 file changed
+5
+5
View File
@@ -298,6 +298,11 @@
maximumSize:frame.size
layoutDirection:self.layoutMetrics.layoutDirection
layoutContext:localLayoutContext];
// Reinforcing a proper frame origin for the Shadow View.
RCTLayoutMetrics localLayoutMetrics = shadowView.layoutMetrics;
localLayoutMetrics.frame.origin = frame.origin;
[shadowView layoutWithMetrics:localLayoutMetrics layoutContext:localLayoutContext];
}
];
}