iOS: fix when parent and parent's parent is fit,child is most,cannot be extend to right size.
This commit is contained in:
parent
9ac6597e8d
commit
2fe2cded48
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user