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:
Saif Al-Dilaimi
2017-01-10 03:26:51 +01:00
committed by Adlai Holler
parent c383b52e78
commit c85aa11dbb
4 changed files with 40 additions and 25 deletions

View File

@@ -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;