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:
committed by
Facebook Github Bot
parent
c7ab004922
commit
ff7bec703b
@@ -27,5 +27,5 @@ static int unmanagedLogger(const YGConfigRef config,
|
|||||||
|
|
||||||
void YGInteropSetLogger(YGInteropLogger managedLogger) {
|
void YGInteropSetLogger(YGInteropLogger managedLogger) {
|
||||||
gManagedLogger = managedLogger;
|
gManagedLogger = managedLogger;
|
||||||
YGSetLogger(YGConfigGetDefault(), &unmanagedLogger);
|
YGConfigSetLogger(YGConfigGetDefault(), &unmanagedLogger);
|
||||||
}
|
}
|
||||||
|
@@ -164,7 +164,7 @@ namespace Facebook.Yoga
|
|||||||
return MeasureOutput.Make(123.4f, 81.7f);
|
return MeasureOutput.Make(123.4f, 81.7f);
|
||||||
});
|
});
|
||||||
node.CalculateLayout();
|
node.CalculateLayout();
|
||||||
Assert.AreEqual(123.0f, node.LayoutWidth);
|
Assert.AreEqual(124.0f, node.LayoutWidth);
|
||||||
Assert.AreEqual(82.0f, node.LayoutHeight);
|
Assert.AreEqual(82.0f, node.LayoutHeight);
|
||||||
|
|
||||||
node = new YogaNode(new YogaConfig{PointScaleFactor = 0});
|
node = new YogaNode(new YogaConfig{PointScaleFactor = 0});
|
||||||
|
Reference in New Issue
Block a user