diff options
author | Piotr Bereza <p.bereza@samsung.com> | 2017-03-22 16:45:27 +0100 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-10-23 13:34:34 +0900 |
commit | b89efb8799ff57e062edb7555170f3471c10080e (patch) | |
tree | cd4d7dfb5aaa9f0488acc09a3f3b7a90479b2466 /Xamarin.Forms.Platform.Tizen/Native/Box.cs | |
parent | 5946956534fec580f5dc96116679046adbc7b893 (diff) | |
download | xamarin-forms-b89efb8799ff57e062edb7555170f3471c10080e.tar.gz xamarin-forms-b89efb8799ff57e062edb7555170f3471c10080e.tar.bz2 xamarin-forms-b89efb8799ff57e062edb7555170f3471c10080e.zip |
New way of layout
Change-Id: I827d199fdc9be0f62a2a149ed2bd943c5ab76056
Signed-off-by: Piotr Bereza <p.bereza@samsung.com>
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native/Box.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Native/Box.cs | 20 |
1 files changed, 10 insertions, 10 deletions
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 /// </remarks> 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; + } } } } |