summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-07-03 05:39:11 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 04:34:38 (GMT)
commit5e376834454ecdfe4c51b926dee85da4018eb97f (patch)
treeff6c32bbad0d8e9f1d466fbad6ea1c36590db9a5
parent8d81b588504780c02f1e8bb47c17faa4718086f3 (diff)
downloadxamarin-forms-5e376834454ecdfe4c51b926dee85da4018eb97f.zip
xamarin-forms-5e376834454ecdfe4c51b926dee85da4018eb97f.tar.gz
xamarin-forms-5e376834454ecdfe4c51b926dee85da4018eb97f.tar.bz2
Fix Layout issue
- 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
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/LayoutRenderer.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/LayoutRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/LayoutRenderer.cs
index 226afbb..69fd24a 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/LayoutRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/LayoutRenderer.cs
@@ -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);