Remove the old constraint from indicator of scrollbar.
authorWang Qingli <qingli6.wang@samsung.com>
Wed, 21 May 2014 07:27:38 +0000 (15:27 +0800)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 27 May 2014 14:39:56 +0000 (15:39 +0100)
Change-Id: I1a65bd64e102c63dab1c11db926ab2aebdc276e0

base/dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.cpp

index 91a49df241cf6142197612d8cd34950a0590c309..db2fdc7bc7841833d52bafabf34c2d8718d409dc 100755 (executable)
@@ -219,13 +219,11 @@ void ScrollBar::ApplyConstraints()
 {
   if( mScrollConnector )
   {
-    Actor self = Self();
-
     Constraint constraint;
 
     if(mIndicatorSizeConstraint)
     {
-      self.RemoveConstraint(mIndicatorSizeConstraint);
+      mIndicator.RemoveConstraint(mIndicatorSizeConstraint);
     }
 
     // Set indicator height according to the indicator's height policy
@@ -243,7 +241,7 @@ void ScrollBar::ApplyConstraints()
 
     if(mIndicatorPositionConstraint)
     {
-      self.RemoveConstraint(mIndicatorPositionConstraint);
+      mIndicator.RemoveConstraint(mIndicatorPositionConstraint);
     }
 
     constraint = Constraint::New<Vector3>( Actor::POSITION,