From 265bafaf00a4027096effaf045fd2601efd461c1 Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Tue, 20 Nov 2018 11:49:30 +0900 Subject: [PATCH] [Tizen] Fix z value issue Change-Id: I9d3f72e5001cdf9ef81a8d30d0e9ee9733790e0a Signed-off-by: huiyu.eun --- dali-toolkit/internal/layouting/layout-controller-impl.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/dali-toolkit/internal/layouting/layout-controller-impl.cpp b/dali-toolkit/internal/layouting/layout-controller-impl.cpp index 9d0b947..b0637b3 100644 --- a/dali-toolkit/internal/layouting/layout-controller-impl.cpp +++ b/dali-toolkit/internal/layouting/layout-controller-impl.cpp @@ -347,13 +347,19 @@ void LayoutController::PerformLayoutPositioning( LayoutPositionDataArray& layout { 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 ); } } } -- 2.7.4