[3.0] Remove current ScrollBar indicator when setting new customed indicator 85/91885/1
authorminho.sun <minho.sun@samsung.com>
Wed, 12 Oct 2016 05:35:29 +0000 (14:35 +0900)
committerminho.sun <minho.sun@samsung.com>
Wed, 12 Oct 2016 05:35:29 +0000 (14:35 +0900)
 Remove current ScrollBar indicator when setting new customed indicator using SetScrollIndicator();

Change-Id: I37d268889a1d68a235b9a50f2bab14d3886b189a
Signed-off-by: minho.sun <minho.sun@samsung.com>
dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.cpp

index 97e2680..85ff34e 100755 (executable)
@@ -243,6 +243,11 @@ void ScrollBar::SetScrollIndicator( Actor indicator )
   // Don't allow empty handle
   if( indicator )
   {
+    // Remove current Indicator
+    if( mIndicator )
+    {
+      Self().Remove( mIndicator );
+    }
     mIndicator = indicator;
     mIndicatorFirstShow = true;
     Self().Add(mIndicator);