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:
committed by
Facebook Github Bot
parent
83fddd8af6
commit
0ee3303791
@@ -103,6 +103,7 @@ static YGConfigRef globalConfig;
|
||||
{
|
||||
globalConfig = YGConfigNew();
|
||||
YGConfigSetExperimentalFeatureEnabled(globalConfig, YGExperimentalFeatureWebFlexBasis, true);
|
||||
YGConfigSetPointScaleFactor(globalConfig, [UIScreen mainScreen].scale);
|
||||
}
|
||||
|
||||
- (instancetype)initWithView:(UIView*)view
|
||||
|
Reference in New Issue
Block a user