iOS:subviews in flexnode cannot be applied
This commit is contained in:
parent
5d306bbf67
commit
6f89cf440b
@ -222,13 +222,12 @@ - (void)requestLayout {
|
|||||||
if ([view isKindOfClass:[DoricFlexView class]]) {
|
if ([view isKindOfClass:[DoricFlexView class]]) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (view.doricLayout.measuredWidth == view.width && view.doricLayout.measuredHeight == view.height) {
|
if (view.doricLayout.measuredWidth != view.width || view.doricLayout.measuredHeight != view.height) {
|
||||||
continue;
|
|
||||||
}
|
|
||||||
view.doricLayout.widthSpec = DoricLayoutJust;
|
view.doricLayout.widthSpec = DoricLayoutJust;
|
||||||
view.doricLayout.heightSpec = DoricLayoutJust;
|
view.doricLayout.heightSpec = DoricLayoutJust;
|
||||||
view.doricLayout.width = view.width;
|
view.doricLayout.width = view.width;
|
||||||
view.doricLayout.height = view.height;
|
view.doricLayout.height = view.height;
|
||||||
|
}
|
||||||
view.doricLayout.measuredX = view.left;
|
view.doricLayout.measuredX = view.left;
|
||||||
view.doricLayout.measuredY = view.top;
|
view.doricLayout.measuredY = view.top;
|
||||||
[view.doricLayout apply];
|
[view.doricLayout apply];
|
||||||
|
Reference in New Issue
Block a user