mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[ASTextKitFontSizeAdjuster] Use the constrainedSize’s height to adjust font scaling (#2309)
* refactor shrinking logic # Conflicts: # AsyncDisplayKit/TextKit/ASTextKitFontSizeAdjuster.mm * fix ASTraitCollection sample * updated comments. * fix build errors * adlai’s comments
This commit is contained in:
@@ -33,8 +33,8 @@ static NSString *kLinkAttributeName = @"PlaceKittenNodeLinkAttributeName";
|
||||
return nil;
|
||||
|
||||
_textNode = [[ASTextNode alloc] init];
|
||||
_textNode.flexGrow = YES;
|
||||
_textNode.flexShrink = YES;
|
||||
_textNode.style.flexGrow = YES;
|
||||
_textNode.style.flexShrink = YES;
|
||||
_textNode.maximumNumberOfLines = 3;
|
||||
[self addSubnode:_textNode];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user