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-07-10 02:11:28 (GMT)
commite84524c5dd91670e4a3f58c113a16d9678507e55 (patch)
tree41ba0878463f9fda4c1bd89835d657fa499d132b
parent213fe563783762eb27ae0f43c5f469bf552a2875 (diff)
downloadxamarin-forms-e84524c5dd91670e4a3f58c113a16d9678507e55.zip
xamarin-forms-e84524c5dd91670e4a3f58c113a16d9678507e55.tar.gz
xamarin-forms-e84524c5dd91670e4a3f58c113a16d9678507e55.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);