Remove unnecessary resize of Window
authorSeungkeun Lee <sngn.lee@samsung.com>
Thu, 2 Feb 2017 06:43:11 +0000 (15:43 +0900)
committerKangho Hur <kangho.hur@samsung.com>
Mon, 24 Apr 2017 04:36:53 +0000 (13:36 +0900)
 - In Initialize step, resize window to ScreenSize, but it is not necessary
 - And it cause improper resize callback, it caused performance degradation

Change-Id: I04f684da0d45ef3b7f40b8646303422197063acf

Xamarin.Forms.Platform.Tizen/Native/Window.cs

index 7587e17..2bc45c6 100644 (file)
@@ -95,10 +95,6 @@ namespace Xamarin.Forms.Platform.Tizen.Native
 
                void Initialize()
                {
-                       // size
-                       var size = ScreenSize;
-                       Resize(size.Width, size.Height);
-
                        // events
                        Deleted += (sender, e) =>
                        {
@@ -123,14 +119,10 @@ namespace Xamarin.Forms.Platform.Tizen.Native
                        Show();
 
                        _conformant = new Conformant(this);
-                       _conformant.SetAlignment(-1.0, -1.0);  // fill
-                       _conformant.SetWeight(1.0, 1.0);  // expand
                        _conformant.Show();
 
                        // Create the base (default) layout for the application
                        _layout = new ELayout(_conformant);
-                       _layout.SetAlignment(-1.0, -1.0);  // fill
-                       _layout.SetWeight(1.0, 1.0);  // expand
                        _layout.SetTheme("layout", "application", "default");
                        _layout.Show();