mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix example projects to use Layout API 2.0 style object (#2285)
* fix examples/ASDKLayoutTransition * fix examples/ASMapNode to use new Layout API 2.0 * fix examples/SocialAppLayout to use Layout API 2.0 * fix CatDealsCollectionView to use Layout API 2.0 * fix examples/AsyncDisplayKitOverview to use Layout API 2.0 * Kittens Layout API 2.0 fixes * HorizontalWithinVerticalScrolling * VerticalWithinHorizontalScrolling * ASDKTube * fix ASViewController * fix layout * fix layout * fix size
This commit is contained in:
@@ -145,10 +145,10 @@ static const CGFloat kInnerPadding = 10.0f;
|
||||
{
|
||||
// Set an intrinsic size for the image node
|
||||
CGSize imageSize = _isImageEnlarged ? CGSizeMake(2.0 * kImageSize, 2.0 * kImageSize) : CGSizeMake(kImageSize, kImageSize);
|
||||
[_imageNode setSizeWithCGSize:imageSize];
|
||||
[_imageNode.style setSizeWithCGSize:imageSize];
|
||||
|
||||
// Shrink the text node in case the image + text gonna be too wide
|
||||
_textNode.flexShrink = YES;
|
||||
_textNode.style.flexShrink = YES;
|
||||
|
||||
// Configure stack
|
||||
ASStackLayoutSpec *stackLayoutSpec =
|
||||
|
||||
Reference in New Issue
Block a user