Fix Layout issue
authorSeungkeun Lee <sngn.lee@samsung.com>
Mon, 3 Jul 2017 05:39:11 +0000 (14:39 +0900)
committerKangho Hur <kangho.hur@samsung.com>
Mon, 10 Jul 2017 02:11:28 +0000 (11:11 +0900)
 - Issue Case
  Layout was neasted
  BatchCommitted event was fired earlier than parent element(Layout)

 - Solution
  Update children geometry when layout was updated if not LayoutCallbackEnabled

Change-Id: I9eb6550c44ebf5bafeaf045f252c9a9e2f68f0fc

Xamarin.Forms.Platform.Tizen/Renderers/LayoutRenderer.cs

index 226afbb..69fd24a 100644 (file)
@@ -42,6 +42,18 @@ namespace Xamarin.Forms.Platform.Tizen
                        base.Dispose(disposing);
                }
 
+               protected override void UpdateLayout()
+               {
+                       base.UpdateLayout();
+                       if (!_layoutUpdatedRegistered)
+                       {
+                               foreach (var child in Element.LogicalChildren)
+                               {
+                                       Platform.GetRenderer(child)?.UpdateNativeGeometry();
+                               }
+                       }
+               }
+
                void OnLayoutUpdated(object sender, Native.LayoutEventArgs e)
                {
                        DoLayout(e);