Fix build and test

Summary: Closes https://github.com/facebook/yoga/pull/543

Reviewed By: emilsjolander

Differential Revision: D4997389

Pulled By: splhack

fbshipit-source-id: b4b3aa4cba29063df93fd2a57f96031a8fa393de
This commit is contained in:
Kazuki Sakamoto
2017-05-04 09:12:34 -07:00
committed by Facebook Github Bot
parent c7ab004922
commit ff7bec703b
2 changed files with 2 additions and 2 deletions

View File

@@ -27,5 +27,5 @@ static int unmanagedLogger(const YGConfigRef config,
void YGInteropSetLogger(YGInteropLogger managedLogger) {
gManagedLogger = managedLogger;
YGSetLogger(YGConfigGetDefault(), &unmanagedLogger);
YGConfigSetLogger(YGConfigGetDefault(), &unmanagedLogger);
}

View File

@@ -164,7 +164,7 @@ namespace Facebook.Yoga
return MeasureOutput.Make(123.4f, 81.7f);
});
node.CalculateLayout();
Assert.AreEqual(123.0f, node.LayoutWidth);
Assert.AreEqual(124.0f, node.LayoutWidth);
Assert.AreEqual(82.0f, node.LayoutHeight);
node = new YogaNode(new YogaConfig{PointScaleFactor = 0});