[Yoga] replace float with YGFloat
- pass all unit tests
This commit is contained in:
@@ -265,16 +265,28 @@
|
||||
subview1.yoga.flexGrow = 1;
|
||||
[container addSubview:subview1];
|
||||
|
||||
UIView *leafView = [[UIView alloc] init];
|
||||
leafView.yoga.isEnabled = YES;
|
||||
[subview1 addSubview:leafView];
|
||||
|
||||
UIView* subview2 = [[UIView alloc] initWithFrame:CGRectZero];
|
||||
subview2.yoga.isEnabled = YES;
|
||||
subview2.yoga.flexGrow = 1;
|
||||
[container addSubview:subview2];
|
||||
|
||||
leafView = [[UIView alloc] init];
|
||||
leafView.yoga.isEnabled = YES;
|
||||
[subview2 addSubview:leafView];
|
||||
|
||||
UIView* subview3 = [[UIView alloc] initWithFrame:CGRectZero];
|
||||
subview3.yoga.isEnabled = YES;
|
||||
subview3.yoga.flexGrow = 1;
|
||||
[container addSubview:subview3];
|
||||
|
||||
leafView = [[UIView alloc] init];
|
||||
leafView.yoga.isEnabled = YES;
|
||||
[subview3 addSubview:leafView];
|
||||
|
||||
[container.yoga applyLayoutPreservingOrigin:YES];
|
||||
|
||||
XCTAssertEqualWithAccuracy(
|
||||
|
Reference in New Issue
Block a user