iOS:Change the behaviour only in VLayout and HLayout and Stack

This commit is contained in:
pengfei.zhou 2020-04-26 09:27:17 +08:00 committed by osborn
parent 05927b33d5
commit cffb3fb0e9

View File

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