mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-23 19:31:21 +08:00
Code style improvements
This commit is contained in:
@@ -493,14 +493,12 @@
|
||||
}
|
||||
|
||||
if (CGSizeEqualToSize(self.preferredFrameSize, CGSizeZero) == NO) {
|
||||
// Handle preferred frame size
|
||||
stack.sizeRange = ASRelativeSizeRangeMakeWithExactCGSize(self.preferredFrameSize);
|
||||
spec = [ASStaticLayoutSpec staticLayoutSpecWithChildren:@[stack]];
|
||||
}
|
||||
|
||||
if (_backgroundImageNode.image) {
|
||||
spec = [ASBackgroundLayoutSpec backgroundLayoutSpecWithChild:spec
|
||||
background:_backgroundImageNode];
|
||||
spec = [ASBackgroundLayoutSpec backgroundLayoutSpecWithChild:spec background:_backgroundImageNode];
|
||||
}
|
||||
|
||||
return spec;
|
||||
|
||||
Reference in New Issue
Block a user