iOS:Change the behaviour only in VLayout and HLayout and Stack
This commit is contained in:
parent
05927b33d5
commit
cffb3fb0e9
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user