mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Fixed asciiArtString. (#2523)
This commit is contained in:
@@ -100,19 +100,6 @@
|
||||
|
||||
@end
|
||||
|
||||
|
||||
#pragma mark - Debugging
|
||||
|
||||
@implementation ASAbsoluteLayoutSpec (Debugging)
|
||||
|
||||
- (NSString *)debugBoxString
|
||||
{
|
||||
return [ASLayoutSpec asciiArtStringForChildren:self.children parentName:[self asciiArtName]];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
#pragma mark - ASStaticLayoutSpec
|
||||
|
||||
@implementation ASStaticLayoutSpec : ASAbsoluteLayoutSpec
|
||||
|
||||
@@ -345,7 +345,7 @@ ASEnvironmentLayoutExtensibilityForwarding
|
||||
|
||||
- (NSString *)asciiArtString
|
||||
{
|
||||
NSArray *children = self.child ? @[self.child] : self.children;
|
||||
NSArray *children = self.children.count < 2 && self.child ? @[self.child] : self.children;
|
||||
return [ASLayoutSpec asciiArtStringForChildren:children parentName:[self asciiArtName]];
|
||||
}
|
||||
|
||||
|
||||
@@ -74,14 +74,3 @@ static NSUInteger const kOverlayChildIndex = 1;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation ASOverlayLayoutSpec (Debugging)
|
||||
|
||||
#pragma mark - ASLayoutElementAsciiArtProtocol
|
||||
|
||||
- (NSString *)debugBoxString
|
||||
{
|
||||
return [ASLayoutSpec asciiArtStringForChildren:@[self.overlay, self.child] parentName:[self asciiArtName]];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -50,12 +50,12 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
previousLayout:(std::shared_ptr<ASDisplayNodeLayout>)previousLayout NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
/**
|
||||
* Insert and remove subnodes that where added or removed between the previousLayout and the pendingLayout
|
||||
* Insert and remove subnodes that were added or removed between the previousLayout and the pendingLayout
|
||||
*/
|
||||
- (void)commitTransition;
|
||||
|
||||
/**
|
||||
* Insert all new subnodes that where added between the previous layout and the pending layout
|
||||
* Insert all new subnodes that were added between the previous layout and the pending layout
|
||||
*/
|
||||
- (void)applySubnodeInsertions;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user