[NUI][Non-ACR] Fix view's size issue 64/199564/1
authorhuiyu.eun <huiyu.eun@samsung.com>
Tue, 20 Nov 2018 03:09:52 +0000 (12:09 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Wed, 13 Feb 2019 05:15:35 +0000 (14:15 +0900)
size of view should be specifized.

Change-Id: Ibc7410c151dbea2036e3197af5a570e4991a6474
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs

index 347ceac..b24bfe2 100755 (executable)
@@ -355,15 +355,20 @@ namespace Tizen.NUI.Tests
         {
             /* TEST CODE */
             View actor = new View();
+            actor.Size2D = new Size2D(100, 100);
             Position position = new Position(6.0f, 6.0f, 6.0f);
-            actor.Position = position;
-
+            actor.Position = position;\r
+\r
+            actor.PositionUsesPivotPoint = true;
             actor.PivotPoint = PivotPoint.Center;
             actor.ParentOrigin = PivotPoint.Center;
 
             View parentActor = new View();
+            parentActor.Size2D = new Size2D(100, 100);
             Position parentPosition = new Position(1.0f, 2.0f, 3.0f);
             parentActor.Position = parentPosition;
+
+            parentActor.PositionUsesPivotPoint = true;
             parentActor.PivotPoint = PivotPoint.Center;
             parentActor.ParentOrigin = PivotPoint.Center;
 
@@ -2277,15 +2282,19 @@ namespace Tizen.NUI.Tests
         {
             /* TEST CODE */
             View parentActor = new View();
+            parentActor.Size2D = new Size2D(100, 100);
             Position parentPosition = new Position(1.0f, 2.0f, 3.0f);
             parentActor.Position = parentPosition;
+            parentActor.PositionUsesPivotPoint = true;
             parentActor.PivotPoint = new Position(0.5f, 0.5f, 0.5f);
             parentActor.ParentOrigin = new Position(0.5f, 0.5f, 0.5f);
             Window.Instance.GetDefaultLayer().Add(parentActor);
 
             View actor = new View();
+            actor.Size2D = new Size2D(100, 100);
             Position position = new Position(10.0f, 11.0f, 12.0f);
             actor.Position = position;
+            actor.PositionUsesPivotPoint = true;
             actor.PivotPoint = new Position(0.5f, 0.5f, 0.5f);
             actor.ParentOrigin = new Position(0.5f, 0.5f, 0.5f);
             actor.InheritPosition = true;