mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
[Layout API] Rename ASStaticLayoutSpec to ASAbsoluteLayoutSpec (#2288)
* Rename static to absolute * Fix examples, rename ASAbsoluteLayoutSpec class method * rename +staticLayoutSpecWithChildren to +absoluteLayoutSpecWithChildren * address Michael's comments
This commit is contained in:
committed by
Adlai Holler
parent
37d9d401b3
commit
87595c7d3b
@@ -40,7 +40,7 @@
|
||||
{
|
||||
self.imageNode.position = CGPointZero;
|
||||
[self.imageNode.style setSizeWithCGSize:constrainedSize.max];
|
||||
return [ASStaticLayoutSpec staticLayoutSpecWithChildren:@[self.imageNode]];
|
||||
return [ASAbsoluteLayoutSpec absoluteLayoutSpecWithChildren:@[self.imageNode]];
|
||||
}
|
||||
|
||||
- (void)layoutDidFinish
|
||||
|
||||
@@ -64,7 +64,7 @@ static const NSInteger kImageHeight = 200;
|
||||
{
|
||||
self.collectionNode.position = CGPointZero;
|
||||
[self.collectionNode.style setSizeWithCGSize:constrainedSize.max];
|
||||
return [ASStaticLayoutSpec staticLayoutSpecWithChildren:@[self.collectionNode]];
|
||||
return [ASAbsoluteLayoutSpec absoluteLayoutSpecWithChildren:@[self.collectionNode]];
|
||||
}
|
||||
|
||||
#pragma mark - ASCollectionDataSource
|
||||
|
||||
Reference in New Issue
Block a user