From b89efb8799ff57e062edb7555170f3471c10080e Mon Sep 17 00:00:00 2001 From: Piotr Bereza Date: Wed, 22 Mar 2017 16:45:27 +0100 Subject: New way of layout Change-Id: I827d199fdc9be0f62a2a149ed2bd943c5ab76056 Signed-off-by: Piotr Bereza --- Xamarin.Forms.Platform.Tizen/Native/Box.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'Xamarin.Forms.Platform.Tizen/Native/Box.cs') diff --git a/Xamarin.Forms.Platform.Tizen/Native/Box.cs b/Xamarin.Forms.Platform.Tizen/Native/Box.cs index 2f551902..e2550e1a 100644 --- a/Xamarin.Forms.Platform.Tizen/Native/Box.cs +++ b/Xamarin.Forms.Platform.Tizen/Native/Box.cs @@ -40,24 +40,24 @@ namespace Xamarin.Forms.Platform.Tizen.Native /// void NotifyOnLayout() { - var g = Geometry; - - if (0 == g.Width || 0 == g.Height) - { - // ignore irrelevant dimensions - return; - } if (null != LayoutUpdated) { + var g = Geometry; + + if (0 == g.Width || 0 == g.Height || g == _previousGeometry) + { + // ignore irrelevant dimensions + return; + } + LayoutUpdated(this, new LayoutEventArgs() { - HasChanged = g != _previousGeometry, Geometry = g, } ); - } - _previousGeometry = g; + _previousGeometry = g; + } } } } -- cgit v1.2.3