[NUI] Revert "temporary fix! fix wrong value of screen position in object dump" 98/164198/1
authordongsug.song <dongsug.song@samsung.com>
Mon, 18 Dec 2017 04:25:26 +0000 (13:25 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Mon, 18 Dec 2017 04:25:26 +0000 (13:25 +0900)
Conflicts:
src/Tizen.NUI/src/public/Layer.cs

This reverts commit 9bd231dcee34a49087688f8af0bc0d269562ecfa.

Change-Id: I466c7a4a929afe6a89a8fbe8d46fc54e46a0a70e

src/Tizen.NUI/src/public/BaseComponents/View.cs [changed mode: 0755->0644]
src/Tizen.NUI/src/public/Layer.cs
src/Tizen.NUI/src/public/NUIApplication.cs

old mode 100755 (executable)
new mode 100644 (file)
index 1311cbd..aa4e4cd
@@ -2151,10 +2151,6 @@ namespace Tizen.NUI.BaseComponents
             {
                 Vector2 temp = new Vector2(0.0f, 0.0f);
                 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
-                // Dali's default layer is default center origin. need to change as top left.
-                // NUI's Layer is like a transparent film which covers entire window. (Layer is not an actor of Dali)
-                // otherwise, this makes ScreenPosition as wrong value.
-                temp -= (Window.Instance.GetSize() * 0.5f);
                 return temp;
             }
         }
index bfa0b8e..f4be7f4 100755 (executable)
@@ -162,7 +162,6 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             if(Window.Instance != null)
             {
-                this.SetParentOrigin(Tizen.NUI.ParentOrigin.TopLeft);
                 this.SetAnchorPoint(Tizen.NUI.PivotPoint.TopLeft);
                 this.SetResizePolicy(ResizePolicyType.FillToParent, DimensionType.AllDimensions);
             }
@@ -180,13 +179,6 @@ namespace Tizen.NUI
                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-        internal void SetParentOrigin(Vector3 origin)
-        {
-            NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
-            if (NDalicPINVOKE.SWIGPendingException.Pending)
-                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-        }
-
         /// <summary>
         /// Downcasts a handle to layer handle.
         /// </summary>
index 6dc58ea..cb2c50d 100755 (executable)
@@ -169,13 +169,6 @@ namespace Tizen.NUI
         protected override void OnCreate()
         {
             base.OnCreate();
-
-            // Dali's default layer is default center origin. need to change as top left.
-            // NUI's Layer is like a transparent film which covers entire window. (Layer is not an actor of Dali)
-            // otherwise, this makes ScreenPosition as wrong value.
-            Layer defaultLayer = Window.GetDefaultLayer();
-            defaultLayer.SetParentOrigin(Tizen.NUI.ParentOrigin.TopLeft);
-            defaultLayer.SetAnchorPoint(Tizen.NUI.PivotPoint.TopLeft);
         }
 
         /// <summary>