mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-03-28 23:58:50 +08:00
Set default value of flexShrink to NO (#2270)
This commit is contained in:
committed by
GitHub
parent
7dd997d442
commit
8427083ddb
@@ -16,7 +16,6 @@ ASEnvironmentLayoutOptionsState ASEnvironmentLayoutOptionsStateMakeDefault()
|
||||
{
|
||||
return (ASEnvironmentLayoutOptionsState) {
|
||||
// Default values can be defined in here
|
||||
.flexShrink = YES
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ static void setCGSizeToNode(CGSize size, ASDisplayNode *node)
|
||||
{
|
||||
ASDisplayNode *displayNode = [[ASDisplayNode alloc] init];
|
||||
|
||||
XCTAssertEqual(displayNode.flexShrink, YES);
|
||||
XCTAssertEqual(displayNode.flexShrink, NO);
|
||||
XCTAssertEqual(displayNode.flexGrow, NO);
|
||||
|
||||
const ASDimension unconstrainedDimension = ASDimensionAuto;
|
||||
|
||||
Reference in New Issue
Block a user