Configure YogaKit with main screen scale factor

Summary:
Hi! After merging 3db38f2a80 the rounding algorithm become broken in YogaKit because it doesn't configure scale factor.
Closes https://github.com/facebook/yoga/pull/534

Differential Revision: D4969481

Pulled By: emilsjolander

fbshipit-source-id: 57ea42a3b1f37007b2392cda724d509e0b28c4cb
This commit is contained in:
Ivan Persidskiy
2017-04-28 03:04:59 -07:00
committed by Facebook Github Bot
parent 83fddd8af6
commit 0ee3303791

View File

@@ -103,6 +103,7 @@ static YGConfigRef globalConfig;
{
globalConfig = YGConfigNew();
YGConfigSetExperimentalFeatureEnabled(globalConfig, YGExperimentalFeatureWebFlexBasis, true);
YGConfigSetPointScaleFactor(globalConfig, [UIScreen mainScreen].scale);
}
- (instancetype)initWithView:(UIView*)view