Previously, RelativeLayout calculated the size for TextLabel with Margin
incorrectly by calling MeasureChildWithMargins().
Because TextLabel size was decreased by its Margin size incorrectly.
Now, RelativeLayout calculates the size for TextLabel with Margin
correctly by calling MeasureChild().
Because TextLabel size is not decreased by its Margin size.
childLayout.Owner.HeightSpecification = LayoutParamPolicies.MatchParent;
}
- MeasureChildWithMargins(childLayout, childWidthMeasureSpec, new LayoutLength(0), childHeightMeasureSpec, new LayoutLength(0));
+ MeasureChild(childLayout, childWidthMeasureSpec, childHeightMeasureSpec);
if (ellipsisTextWidth || needMeasuredWidth)
{