add iOS Image Node

This commit is contained in:
pengfei.zhou
2019-08-06 20:06:34 +08:00
parent 471e87badc
commit f1efee6a3e
90 changed files with 82 additions and 2108 deletions

View File

@@ -178,7 +178,11 @@ - (CGFloat)measuredHeight {
}
- (void)measureByParent:(DoricGroupNode *)parent {
DoricLayoutDesc widthSpec = self.layoutParams.width;
DoricLayoutDesc heightSpec = self.layoutParams.height;
if (widthSpec == LAYOUT_WRAP_CONTENT || heightSpec == LAYOUT_WRAP_CONTENT) {
[self.view sizeToFit];
}
}
- (void)layoutByParent:(DoricGroupNode *)parent {
@@ -296,4 +300,8 @@ - (void)setCenterY:(CGFloat)centerY {
((UIView *)self.view).centerY = centerY;
}
- (void)requestLayout {
[self.parent requestLayout];
}
@end