mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Flex shrink should be set on title init, not image init
This commit is contained in:
@@ -66,6 +66,7 @@
|
||||
if (!_titleNode) {
|
||||
_titleNode = [[ASTextNode alloc] init];
|
||||
[_titleNode setLayerBacked:YES];
|
||||
[_titleNode setFlexShrink:YES];
|
||||
}
|
||||
return _titleNode;
|
||||
}
|
||||
@@ -75,7 +76,6 @@
|
||||
if (!_imageNode) {
|
||||
_imageNode = [[ASImageNode alloc] init];
|
||||
[_imageNode setLayerBacked:YES];
|
||||
[_titleNode setFlexShrink:YES];
|
||||
}
|
||||
return _imageNode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user