Merge pull request #44 from xamarin/fix-bz39499
authorJason Smith <jason.smith@xamarin.com>
Tue, 5 Apr 2016 18:18:24 +0000 (11:18 -0700)
committerkingces95 <kingces95@users.noreply.github.com>
Tue, 5 Apr 2016 18:18:24 +0000 (11:18 -0700)
Fix bz39499

Xamarin.Forms.Platform.Android/Renderers/CarouselViewRenderer.cs

index d563b7f..a98126f 100644 (file)
@@ -650,6 +650,8 @@ namespace Xamarin.Forms.Platform.Android
                                var renderer = _view as IVisualElementRenderer;
                                renderer.Element.Layout(position.ToFormsRectangle(_layout._context));
 
+                               // causes the private LAYOUT_REQUIRED flag to be set so we can be sure the Layout call will properly chain through to all children
+                               Measure(position.Width, position.Height);
                                _layout.LayoutDecorated(_view, 
                                        left: position.Left, 
                                        top: position.Top,