Permalink
Browse files

Fixed issue with remeasuring ReactTextShadowNode

Summary:
This fixes the regression recently introduced during refactoring of text-related classes.
So, added fragment of code was lost in D5715830.
See how it looked before:
https://github.com/facebook/react-native/blob/9f5bdd7b497427506dab753ed12017900cb5ffe7/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java#L424-L431

Reviewed By: TheSavior

Differential Revision: D5827424

fbshipit-source-id: 5df99620057ff6a27105dd05903c7f5def85c5d2
  • Loading branch information...
shergin authored and facebook-github-bot committed Sep 13, 2017
1 parent 2259538 commit a17797940dc6ee5acbcdf115c591ffbc53c0927c
@@ -168,6 +168,13 @@ public boolean isVirtualAnchor() {
return true;
}
@Override
public void markUpdated() {
super.markUpdated();
// Telling to Yoga that the node should be remeasured on next layout pass.
super.dirty();
}
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
super.onCollectExtraUpdates(uiViewOperationQueue);

0 comments on commit a177979

Please sign in to comment.