Commit fb79063e4c3fece8cf83090e53f159573cb9c1d8

Authored by Adeel Kazmi
Committed by Gerrit Code Review
2 parents 2e1746f4 58e24839

Merge "Use pre-defined animatable property index in ScrollView" into tizen

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,7 +784,7 @@ void DaliTableView::InitialiseBackgroundActors( Actor actor )
784 784
785 // Define bubble horizontal parallax and vertical wrapping 785 // Define bubble horizontal parallax and vertical wrapping
786 Constraint animConstraint = Constraint::New < Vector3 > ( Actor::Property::POSITION, 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 Dali::ParentSource( Dali::Actor::Property::SIZE ), 788 Dali::ParentSource( Dali::Actor::Property::SIZE ),
789 AnimateBubbleConstraint( childPos, Random::Range( -0.85f, 0.25f ), childSize.height ) ); 789 AnimateBubbleConstraint( childPos, Random::Range( -0.85f, 0.25f ), childSize.height ) );
790 child.ApplyConstraint( animConstraint ); 790 child.ApplyConstraint( animConstraint );