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 Oct 15, 2017
1 parent 7217471 commit e71eb4e
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 e71eb4e

Please sign in to comment.