mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-15 16:36:36 +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) {
|
if (!_titleNode) {
|
||||||
_titleNode = [[ASTextNode alloc] init];
|
_titleNode = [[ASTextNode alloc] init];
|
||||||
[_titleNode setLayerBacked:YES];
|
[_titleNode setLayerBacked:YES];
|
||||||
|
[_titleNode setFlexShrink:YES];
|
||||||
}
|
}
|
||||||
return _titleNode;
|
return _titleNode;
|
||||||
}
|
}
|
||||||
@ -75,7 +76,6 @@
|
|||||||
if (!_imageNode) {
|
if (!_imageNode) {
|
||||||
_imageNode = [[ASImageNode alloc] init];
|
_imageNode = [[ASImageNode alloc] init];
|
||||||
[_imageNode setLayerBacked:YES];
|
[_imageNode setLayerBacked:YES];
|
||||||
[_titleNode setFlexShrink:YES];
|
|
||||||
}
|
}
|
||||||
return _imageNode;
|
return _imageNode;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user