Do not restrict Layouts to their parent size at most unless
explictly requested to MatchParent
Needed to allow a layout to scroll within it's smaller parent.
Change-Id: Id2d84601a9b1d2956636b6d5f9334eefb5f0e9c0
LayoutLength width = new LayoutLength(rootSize.Width);
LayoutLength height = new LayoutLength(rootSize.Height);
- MeasureSpecification.ModeType widthMode = MeasureSpecification.ModeType.AtMost;
- MeasureSpecification.ModeType heightMode = MeasureSpecification.ModeType.AtMost;
+ MeasureSpecification.ModeType widthMode = MeasureSpecification.ModeType.Unspecified;
+ MeasureSpecification.ModeType heightMode = MeasureSpecification.ModeType.Unspecified;
if ( root.WidthSpecification >= 0 )
{