iOS: fix when parent and parent's parent is fit,child is most,cannot be extend to right size.

This commit is contained in:
pengfei.zhou 2021-04-19 17:39:35 +08:00 committed by osborn
parent 9ac6597e8d
commit 2fe2cded48

View File

@ -194,10 +194,10 @@ - (void)measureContent:(CGSize)targetSize {
} }
} }
if (self.view.superview.doricLayout.layoutType != DoricUndefined && self.view.superview.doricLayout.widthSpec == DoricLayoutFit && self.widthSpec == DoricLayoutMost) { if (self.view.superview.doricLayout.layoutType != DoricUndefined && self.view.superview.doricLayout.widthSpec == DoricLayoutFit && self.widthSpec == DoricLayoutMost) {
self.measuredWidth = 0; self.measuredWidth = targetSize.width;
} }
if (self.view.superview.doricLayout.layoutType != DoricUndefined && self.view.superview.doricLayout.heightSpec == DoricLayoutFit && self.heightSpec == DoricLayoutMost) { if (self.view.superview.doricLayout.layoutType != DoricUndefined && self.view.superview.doricLayout.heightSpec == DoricLayoutFit && self.heightSpec == DoricLayoutMost) {
self.measuredHeight = 0; self.measuredHeight = targetSize.height;
} }
} }