Dali-Text: Keyboard Shortcuts
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / text-vertical-scroller.cpp
index fabf035..4f1c4b3 100644 (file)
@@ -45,7 +45,8 @@ TextVerticalScrollerPtr TextVerticalScroller::New()
 }
 
 TextVerticalScroller::TextVerticalScroller()
-: mDuration( DEFAULT_VERTICAL_SCROLL_DURATION )
+: mDuration( DEFAULT_VERTICAL_SCROLL_DURATION ),
+  mScrollTo( 0.0f )
 {
 }
 
@@ -62,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;
@@ -80,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();
 }