Fix Control::ClearBackground 01/83301/1
authorminho.sun <minho.sun@samsung.com>
Wed, 10 Aug 2016 05:15:49 +0000 (14:15 +0900)
committerminho.sun <minho.sun@samsung.com>
Wed, 10 Aug 2016 05:17:34 +0000 (14:17 +0900)
 ClearBackground() didn't make backgroundcolor Color:Transparent before.

 So, make ClearBackground set backgroundcolor to Color:Transparent after
 mImpl->mBackgroundRenderer.RemoveAndReset().

Change-Id: I467cb3569d9fca86313efddba1866dc176e5d4b8
Signed-off-by: minho.sun <minho.sun@samsung.com>
dali-toolkit/public-api/controls/control-impl.cpp

index 8c5eb2a..253f3a2 100644 (file)
@@ -511,6 +511,7 @@ void Control::ClearBackground()
 {
   Actor self( Self() );
   mImpl->mBackgroundVisual.RemoveAndReset( self );
+  mImpl->mBackgroundColor = Color::TRANSPARENT;
 }
 
 void Control::EnableGestureDetection(Gesture::Type type)