mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[Examples] Layout 2.0 updates (#2382)
[Examples] Layout 2.0 updates: Switch YES to 1.0 for flexGrow and flexShrink
This commit is contained in:
@@ -168,7 +168,7 @@ static const CGFloat kInnerPadding = 10.0f;
|
||||
CGSize videoNodeSize = _isImageEnlarged ? CGSizeMake(2.0 * kImageSize, 2.0 * kImageSize)
|
||||
: CGSizeMake(kImageSize, kImageSize);
|
||||
_videoNode.size = ASRelativeSizeRangeMakeWithExactCGSize(videoNodeSize);
|
||||
_textNode.flexShrink = YES;
|
||||
_textNode.flexShrink = 1.0;
|
||||
|
||||
ASStackLayoutSpec *stackSpec = [[ASStackLayoutSpec alloc] init];
|
||||
stackSpec.direction = ASStackLayoutDirectionHorizontal;
|
||||
|
||||
Reference in New Issue
Block a user