Commit 58e24839708bd65d21f9c5a76b7259b3c6db64fd

Authored by Richard Huang
1 parent 5c9555a6

Use pre-defined animatable property index in ScrollView

Change-Id: I60fcc4e9a85e889fb0fe988859a42a87d83acb87
Showing 1 changed file with 1 additions and 1 deletions
demo/dali-table-view.cpp
... ... @@ -784,7 +784,7 @@ void DaliTableView::InitialiseBackgroundActors( Actor actor )
784 784  
785 785 // Define bubble horizontal parallax and vertical wrapping
786 786 Constraint animConstraint = Constraint::New < Vector3 > ( Actor::Property::POSITION,
787   - Source( mScrollView, mScrollView.GetPropertyIndex( ScrollView::SCROLL_POSITION_PROPERTY_NAME ) ),
  787 + Source( mScrollView, ScrollView::Property::SCROLL_POSITION ),
788 788 Dali::ParentSource( Dali::Actor::Property::SIZE ),
789 789 AnimateBubbleConstraint( childPos, Random::Range( -0.85f, 0.25f ), childSize.height ) );
790 790 child.ApplyConstraint( animConstraint );
... ...