Bug fix when the width and height specification of the text label is wrap, wrap.
I think even if the width is wrap, it should not exceed the size of the parent.
But I can not predict what compatibility this will break.
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
}
else
{
- float width = naturalSize != null ? naturalSize.Width : 0;
+ float width = naturalSize?.Width ?? 0;
+ width = Math.Min(width, totalWidth);
+
// Since priority of MinimumSize is higher than MaximumSize in DALi, here follows it.
totalWidth = Math.Min(Math.Max(width, minSize.Width), (maxSize.Width < 0 ? Int32.MaxValue : maxSize.Width));