[4.0] Text auto scroll animation bug fix 94/158894/2
authorJinho, Lee <jeano.lee@samsung.com>
Mon, 30 Oct 2017 05:58:19 +0000 (14:58 +0900)
committerJinho Lee <jeano.lee@samsung.com>
Mon, 6 Nov 2017 05:04:39 +0000 (05:04 +0000)
commit616f014cfb3de9a071c5ae510ca441d1dfcfc3f2
tree81668dfd545c937e400dd990f190265126705b96
parentf7348d8a07045f23b47cfc58bdd95eceef72cfdd
[4.0] Text auto scroll animation bug fix

 Before this patch,
 That code played scroll animation.
    textLabel = TextLabel::New( "Hello World" );
    textLabel.SetProperty( Toolkit::TextLabel::Property::AUTO_SCROLL_STOP_MODE, TextLabel::AutoScrollStopMode::IMMEDIATE);
    textLabel.SetProperty( Toolkit::TextLabel::Property::ENABLE_AUTO_SCROLL,true);
    textLabel.SetProperty( Toolkit::TextLabel::Property::ENABLE_AUTO_SCROLL,false);
    stage.Add(textLabel);

 So I added code for stopping animation when mScrollAnimation was Null.

Change-Id: I4fa881215c4c30228e2cb0fb6f9f80e7060bf6b2
automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp
dali-toolkit/internal/text/text-scroller.cpp