iOS: List support fit width or height
This commit is contained in:
@@ -1085,8 +1085,8 @@ - (void)undefinedMeasureWidth:(DoricMeasureSpec)widthMeasureSpec
|
||||
+ self.paddingTop + self.paddingBottom
|
||||
spec:heightMeasureSpec
|
||||
childMeasuredState:0];
|
||||
self.measuredWidth = widthSizeAndState.size;
|
||||
self.measuredHeight = heightSizeAndState.size;
|
||||
self.measuredWidth = MAX(widthSizeAndState.size, self.minWidth);
|
||||
self.measuredHeight = MAX(heightSizeAndState.size, self.minHeight);
|
||||
self.measuredState = (widthSizeAndState.state
|
||||
<< DORIC_MEASURED_HEIGHT_STATE_SHIFT) | heightSizeAndState.state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user