mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Adding section to passthrough properties (#2847)
* added accessoryType to ASCellNode * Moved the passthrough properties in an own section in ASEditableTextNode * added documentation and reverted ASEditableCellNode changes * fixed code signing * adding seperatorInset property as a passthrough property * revert changes to project file * moved setting properties to setNode: * moved clipsToBounds to setNode
This commit is contained in:
committed by
Adlai Holler
parent
c383b52e78
commit
c85aa11dbb
@@ -74,6 +74,13 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
|
||||
- (void)setNode:(ASCellNode *)node
|
||||
{
|
||||
_node = node;
|
||||
|
||||
self.backgroundColor = node.backgroundColor;
|
||||
self.selectionStyle = node.selectionStyle;
|
||||
self.accessoryType = node.accessoryType;
|
||||
self.separatorInset = node.seperatorInset;
|
||||
self.clipsToBounds = node.clipsToBounds;
|
||||
|
||||
[node __setSelectedFromUIKit:self.selected];
|
||||
[node __setHighlightedFromUIKit:self.highlighted];
|
||||
}
|
||||
@@ -804,13 +811,6 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
|
||||
[_rangeController configureContentView:cell.contentView forCellNode:node];
|
||||
|
||||
cell.node = node;
|
||||
cell.backgroundColor = node.backgroundColor;
|
||||
cell.selectionStyle = node.selectionStyle;
|
||||
|
||||
// the following ensures that we clip the entire cell to it's bounds if node.clipsToBounds is set (the default)
|
||||
// This is actually a workaround for a bug we are seeing in some rare cases (selected background view
|
||||
// overlaps other cells if size of ASCellNode has changed.)
|
||||
cell.clipsToBounds = node.clipsToBounds;
|
||||
}
|
||||
|
||||
return cell;
|
||||
|
||||
Reference in New Issue
Block a user