[Tizen] Fix z value issue
authorJiyun Yang <ji.yang@samsung.com>
Thu, 22 Nov 2018 05:48:11 +0000 (14:48 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Thu, 22 Nov 2018 05:49:08 +0000 (14:49 +0900)
This reverts commit 19032ffc1ae7945a7d39454434bf9dbeb3d73c15.

Change-Id: If75963503adc5e094e129a0f82db2bf920d3d5df

dali-toolkit/internal/layouting/layout-controller-impl.cpp

index d2e0119..5dfcb35 100644 (file)
@@ -238,13 +238,19 @@ void LayoutController::PerformLayoutPositioning( LayoutPositionDataArray& layout
       DALI_LOG_INFO( gLogFilter, Debug::Verbose, "LayoutController::PerformLayoutPositioning %s\n", actor.GetName().c_str() );
       if ( !layoutPositionData.animated )
       {
-        actor.SetPosition( layoutPositionData.left, layoutPositionData.top );
-        actor.SetSize( layoutPositionData.right - layoutPositionData.left, layoutPositionData.bottom - layoutPositionData.top );
+        actor.SetX( layoutPositionData.left );
+        actor.SetY( layoutPositionData.top );
+
+        actor.SetProperty( Actor::Property::SIZE_WIDTH, layoutPositionData.right - layoutPositionData.left );
+        actor.SetProperty( Actor::Property::SIZE_HEIGHT, layoutPositionData.bottom - layoutPositionData.top );
       }
       else
       {
-        actor.SetPosition( actor.GetCurrentPosition() );
-        actor.SetSize( actor.GetCurrentSize() );
+        actor.SetX( actor.GetCurrentPosition().x );
+        actor.SetY( actor.GetCurrentPosition().y );
+
+        actor.SetProperty( Actor::Property::SIZE_WIDTH, actor.GetCurrentSize().x );
+        actor.SetProperty( Actor::Property::SIZE_HEIGHT, actor.GetCurrentSize().y );
       }
     }
   }