Further Setter/Getter public API removal from Dali::Actor
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / text-vertical-scroller.cpp
index b9d6606..4f1c4b3 100644 (file)
@@ -63,7 +63,7 @@ void TextVerticalScroller::CheckStartAnimation( Actor& sourceActor, float x, flo
     {
       mScrollAnimation.Clear();
     }
-    sourceActor.SetPosition( x, y );
+    sourceActor.SetProperty( Actor::Property::POSITION, Vector2( x, y ));
     return;
   }
   float toY = y + scrollAmount;
@@ -81,7 +81,7 @@ void TextVerticalScroller::CheckStartAnimation( Actor& sourceActor, float x, flo
   mScrollTo = toY;
 
   // Set animation attribute
-  sourceActor.SetPosition( x, y );
+  sourceActor.SetProperty( Actor::Property::POSITION, Vector2( x, y ));
   mScrollAnimation.AnimateTo( Property(sourceActor, Actor::Property::POSITION_Y), mScrollTo, AlphaFunction::EASE_OUT_SINE );
   mScrollAnimation.Play();
 }