From: Sunghyun kim Date: Mon, 25 Feb 2019 06:57:55 +0000 (+0900) Subject: Revert "[Tizen] Fix z value issue" X-Git-Tag: submit/tizen/20190225.081322~4 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=df9f57f40038391a7d1e7c8c531def42cb2ff690 Revert "[Tizen] Fix z value issue" This reverts commit 70473dbe82e68393b85e8ecae54e64135c495c55. Change-Id: I090a65759dc1ec980ceb31e1bbb713e7ab6f98e7 --- diff --git a/dali-toolkit/internal/layouting/layout-controller-impl.cpp b/dali-toolkit/internal/layouting/layout-controller-impl.cpp index b0637b3..9d0b947 100644 --- a/dali-toolkit/internal/layouting/layout-controller-impl.cpp +++ b/dali-toolkit/internal/layouting/layout-controller-impl.cpp @@ -347,19 +347,13 @@ void LayoutController::PerformLayoutPositioning( LayoutPositionDataArray& layout { if( !layoutPositionData.animated ) { - 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 ); + actor.SetPosition( layoutPositionData.left, layoutPositionData.top ); + actor.SetSize( layoutPositionData.right - layoutPositionData.left, layoutPositionData.bottom - layoutPositionData.top ); } else { - 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 ); + actor.SetPosition( actor.GetCurrentPosition() ); + actor.SetSize( actor.GetCurrentSize() ); } } }