mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +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
@@ -291,7 +291,7 @@ const CGFloat kSoldOutGBHeight = 50.0;
|
||||
|
||||
self.badge.style.layoutPosition = CGPointMake(0, constrainedSize.max.height - kFixedLabelsAreaHeight - kBadgeHeight);
|
||||
self.badge.style.height = ASDimensionMakeWithPoints(kBadgeHeight);
|
||||
ASStaticLayoutSpec *badgePosition = [ASStaticLayoutSpec staticLayoutSpecWithChildren:@[self.badge]];
|
||||
ASAbsoluteLayoutSpec *badgePosition = [ASAbsoluteLayoutSpec absoluteLayoutSpecWithChildren:@[self.badge]];
|
||||
|
||||
ASOverlayLayoutSpec *badgeOverImage = [ASOverlayLayoutSpec overlayLayoutSpecWithChild:imagePlace overlay:badgePosition];
|
||||
badgeOverImage.style.flexGrow = YES;
|
||||
|
||||
Reference in New Issue
Block a user