Previously, ScrollableBase Layout did not respect MaximumSize so the
Size property value might be bigger than actual rendered size on screen
if MaximumSize is smaller than Size property value.
Because actual rendered size respects MaximumSize in DALi.
Now, ScrollableBase Layout respects MaximumSize so the Size property
value and actual rendered size on screen are the same.
totalWidth = Math.Max(totalWidth, SuggestedMinimumWidth.AsDecimal());
totalHeight = Math.Max(totalHeight, SuggestedMinimumHeight.AsDecimal());
+ // Since priority of MinimumSize is higher than MaximumSize in DALi, here follows it.
+ totalWidth = Math.Max(Math.Min(totalWidth, Owner.GetMaximumWidth()), Owner.GetMinimumWidth());
+ totalHeight = Math.Max(Math.Min(totalHeight, Owner.GetMaximumHeight()), Owner.GetMinimumHeight());
+
widthSizeAndState.State = childWidthState;
heightSizeAndState.State = childHeightState;