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:
9f5bdd7b49/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java (L424-L431)

Reviewed By: TheSavior

Differential Revision: D5827424

fbshipit-source-id: 5df99620057ff6a27105dd05903c7f5def85c5d2
This commit is contained in:
Valentin Shergin 2017-09-13 14:31:06 -07:00 committed by Facebook Github Bot
parent 2259538085
commit a17797940d
1 changed files with 7 additions and 0 deletions

View File

@ -168,6 +168,13 @@ public class ReactTextShadowNode extends ReactBaseTextShadowNode {
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);