[Tizen]Change size for new visual using initialized transformMap when mVisual is... 82/222482/1
authorSunghyun kim <scholb.kim@samsung.com>
Wed, 15 Jan 2020 09:27:23 +0000 (18:27 +0900)
committerSunghyun kim <scholb.kim@samsung.com>
Wed, 15 Jan 2020 09:45:07 +0000 (18:45 +0900)
When the size was set for the new visual, there was an issue that the previous transformMap was set together.
so in order to prevent this, The new visual has been changed to use the initialized map.

Change-Id: I1ce1b735691e1b4963c3d4f3faf07d2c148ad478

dali-toolkit/internal/controls/image-view/image-view-impl.cpp

index 5a0aa91..0e14b11 100755 (executable)
@@ -371,7 +371,7 @@ void ImageView::OnRelayout( const Vector2& size, RelayoutContainer& container )
     Toolkit::Visual::Base visual = DevelControl::GetVisual( *this, Toolkit::ImageView::Property::IMAGE );
     if( visual && visual != mVisual )
     {
-      visual.SetTransformAndSize( transformMap, size );
+      visual.SetTransformAndSize( Property::Map(), size );
     }
   }
 }