diff --git a/Pod/Classes/Shader/DoricLayouts.m b/Pod/Classes/Shader/DoricLayouts.m index 176eb18b..57e2043b 100644 --- a/Pod/Classes/Shader/DoricLayouts.m +++ b/Pod/Classes/Shader/DoricLayouts.m @@ -428,7 +428,7 @@ - (void)layoutSelf:(CGSize)targetSize { if (!childConfig) { childConfig = [DoricLayoutConfig new]; } - + CGSize size = [child measureSize:CGSizeMake( targetSize.width - xStart - padding.right, targetSize.height - padding.top - padding.bottom)]; diff --git a/Pod/Classes/Shader/DoricListNode.m b/Pod/Classes/Shader/DoricListNode.m index 7791bc71..8cb332ce 100644 --- a/Pod/Classes/Shader/DoricListNode.m +++ b/Pod/Classes/Shader/DoricListNode.m @@ -86,6 +86,7 @@ - (UITableView *)build { it.dataSource = self; it.delegate = self; it.separatorStyle = UITableViewCellSeparatorStyleNone; + it.allowsSelection = NO; }]; } diff --git a/Pod/Classes/Shader/DoricTextNode.m b/Pod/Classes/Shader/DoricTextNode.m index 9b54525c..8c261a88 100644 --- a/Pod/Classes/Shader/DoricTextNode.m +++ b/Pod/Classes/Shader/DoricTextNode.m @@ -48,6 +48,8 @@ - (void)blendView:(UILabel *)view forPropName:(NSString *)name propValue:(id)pro alignment = NSTextAlignmentRight; } view.textAlignment = alignment; + } else if ([name isEqualToString:@"maxLines"]) { + view.numberOfLines = [prop integerValue]; } else { [super blendView:view forPropName:name propValue:prop]; }