mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[Layout] Rename ASLayoutable to ASLayoutElement (#2290)
* [Layout API] Rename ASLayoutable to ASLayoutElement * arg * fix wrapperWithLayoutElement * [Layout API] Rename ASLayoutable to ASLayoutElement * arg * address Michael's comments * Remove ASLayoutValidation files that were deleted on master since this diff was created.
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
// 100% of container
|
||||
_node.style.width = ASDimensionMakeWithFraction(1.0);
|
||||
_node.style.height = ASDimensionMakeWithFraction(1.0);
|
||||
return [ASWrapperLayoutSpec wrapperWithLayoutable:_node];
|
||||
return [ASWrapperLayoutSpec wrapperWithLayoutElement:_node];
|
||||
}
|
||||
|
||||
#pragma mark - <ASCollectionDataSource, ASCollectionDelegate>
|
||||
|
||||
@@ -37,7 +37,7 @@ static UIColor *OverViewASPagerNodeRandomColor() {
|
||||
|
||||
- (ASLayout *)calculateLayoutThatFits:(ASSizeRange)constrainedSize
|
||||
{
|
||||
return [ASLayout layoutWithLayoutable:self size:constrainedSize.max];
|
||||
return [ASLayout layoutWithLayoutElement:self size:constrainedSize.max];
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -70,7 +70,7 @@ static UIColor *OverViewASPagerNodeRandomColor() {
|
||||
// 100% of container
|
||||
_node.style.width = ASDimensionMakeWithFraction(1.0);
|
||||
_node.style.height = ASDimensionMakeWithFraction(1.0);
|
||||
return [ASWrapperLayoutSpec wrapperWithLayoutable:_node];
|
||||
return [ASWrapperLayoutSpec wrapperWithLayoutElement:_node];
|
||||
}
|
||||
|
||||
- (NSInteger)numberOfPagesInPagerNode:(ASPagerNode *)pagerNode
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
// 100% of container
|
||||
_node.style.width = ASDimensionMakeWithFraction(1.0);
|
||||
_node.style.height = ASDimensionMakeWithFraction(1.0);
|
||||
return [ASWrapperLayoutSpec wrapperWithLayoutable:_node];
|
||||
return [ASWrapperLayoutSpec wrapperWithLayoutElement:_node];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user