X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=base%2Fdali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fscroll-view%2Fscroll-view-impl.cpp;h=b5a0751b8d79657dacbb467f1b8eac4a45fb5334;hp=81c8893349280b126034592d12882d6a27953117;hb=a81e6cdec136b728115431822a2ff3f60e279045;hpb=6af5947bc891acb3ee308d9bca5f848fb69a1744 diff --git a/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp b/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp index 81c8893..b5a0751 100644 --- a/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp +++ b/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp @@ -2863,27 +2863,15 @@ void ScrollView::SetInternalConstraints() // User definable constraints to apply to all child actors ////////////////// Actor self = Self(); - // LocalSource - The Actors to be moved. - // self - The ScrollView - - // Apply some default constraints to ScrollView. + // Apply some default constraints to ScrollView & its bound actors // Movement + Wrap function - // TODO: Look into removing some of these constraints Constraint constraint; - // MoveScaledActor (scrolling/zooming) + // MoveActor (scrolling) constraint = Constraint::New( Actor::POSITION, Source( self, mPropertyPosition ), - Source( self, mPropertyScale ), - MoveScaledActorConstraint ); - constraint.SetRemoveAction(Constraint::Discard); - ApplyConstraintToBoundActors(constraint); - - // ScaleActor (scrolling/zooming) - constraint = Constraint::New( Actor::SCALE, - Source( self, mPropertyScale ), - ScaleActorConstraint ); + MoveActorConstraint ); constraint.SetRemoveAction(Constraint::Discard); ApplyConstraintToBoundActors(constraint);