summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-09-15 00:19:11 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 04:34:41 (GMT)
commitab135c4d5aff785e128fc082499a700f931c78d0 (patch)
tree4b604d931b123dc89204a57952ba87ecb0a195f2
parent0090a1bb685859142dd7012d1cd47fde7b83c404 (diff)
downloadxamarin-forms-ab135c4d5aff785e128fc082499a700f931c78d0.zip
xamarin-forms-ab135c4d5aff785e128fc082499a700f931c78d0.tar.gz
xamarin-forms-ab135c4d5aff785e128fc082499a700f931c78d0.tar.bz2
Fix MasterDetailPage Layout issue
- Wrong resize event was triggerd layouting - Change the callback to layout triggering (Resized -> LayoutUpdated) - TASK=EFL-982 Change-Id: I3493777817cd8715a105fcc6f777329a4af8539a
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/MasterDetailPage.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/MasterDetailPage.cs b/Xamarin.Forms.Platform.Tizen/Native/MasterDetailPage.cs
index 6826073..7748947 100644
--- a/Xamarin.Forms.Platform.Tizen/Native/MasterDetailPage.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/MasterDetailPage.cs
@@ -1,12 +1,13 @@
´╗┐using System;
using ElmSharp;
+using EBox = ElmSharp.Box;
namespace Xamarin.Forms.Platform.Tizen.Native
{
/// <summary>
/// The native widget which provides Xamarin.MasterDetailPage features.
/// </summary>
- public class MasterDetailPage : Box
+ public class MasterDetailPage : EBox
{
/// <summary>
/// The portion of the screen that the MasterPage takes in Split mode.
@@ -98,7 +99,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native
_masterCanvas = new Canvas(this);
_masterCanvas.SetAlignment(-1.0, -1.0); // fill
_masterCanvas.SetWeight(1.0, 1.0); // expand
- _masterCanvas.Resized += (sender, e) =>
+ _masterCanvas.LayoutUpdated += (sender, e) =>
{
UpdatePageGeometry(_master);
};
@@ -106,7 +107,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native
_detailCanvas = new Canvas(this);
_detailCanvas.SetAlignment(-1.0, -1.0); // fill
_detailCanvas.SetWeight(1.0, 1.0); // expand
- _detailCanvas.Resized += (sender, e) =>
+ _detailCanvas.LayoutUpdated += (sender, e) =>
{
UpdatePageGeometry(_detail);
};