Skip to content

Commit

Permalink
transfer current layout before calling basline function
Browse files Browse the repository at this point in the history
  • Loading branch information
woehrl01 committed Nov 23, 2017
1 parent 34ac314 commit 8cb6c1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions java/jni/YGJNI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ static float YGJNIBaselineFunc(YGNodeRef node, float width, float height) {
if (auto obj = YGNodeJobject(node)->lockLocal()) {
static auto baselineFunc = findClassStatic("com/facebook/yoga/YogaNode")
->getMethod<jfloat(jfloat, jfloat)>("baseline");
YGTransferLayoutOutputsRecursive(obj);
return baselineFunc(obj, width, height);
} else {
return height;
Expand Down

0 comments on commit 8cb6c1a

Please sign in to comment.