mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-15 08:27:52 +00:00
Merge pull request #1269 from garrettmoon/fixButtonLabel
[ASButtonNode] Flex shrink should be set on title init, not image init
This commit is contained in:
commit
db2a606a51
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user