From a0e686956bbef0d6a101a8c1af99423e03f71584 Mon Sep 17 00:00:00 2001 From: doubled80 Date: Sat, 21 Sep 2013 00:18:25 -0400 Subject: [PATCH] Bugfix where using object initializer syntax does not set layout property correctly Using the format: ... new UILayoutHostScrollable() { Layout = someLayout } ... would result in the layout not loading properly. It did, however, work perfect using the method argument syntax. --- XibFree/UILayoutHostScrollable.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/XibFree/UILayoutHostScrollable.cs b/XibFree/UILayoutHostScrollable.cs index dd337c1..709fa7e 100644 --- a/XibFree/UILayoutHostScrollable.cs +++ b/XibFree/UILayoutHostScrollable.cs @@ -60,7 +60,7 @@ public ViewGroup Layout set { - _layoutHost.Layout = Layout; + _layoutHost.Layout = value; SetNeedsLayout(); } } @@ -91,6 +91,7 @@ public override void LayoutSubviews() ContentSize = size; } } + } }