[Tizen] Set ResizePolicy::FIXED even though the size is 0 68/222868/1
authorHeeyong Song <heeyong.song@samsung.com>
Tue, 31 Dec 2019 06:38:10 +0000 (15:38 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Tue, 21 Jan 2020 03:51:12 +0000 (12:51 +0900)
Change-Id: Ic059465bc7d86faf5d8be9c9af439326bf9d8450

dali/internal/event/actors/actor-impl.cpp

index e623464..4a99aa7 100755 (executable)
@@ -4651,15 +4651,8 @@ void Actor::SetPreferredSize( const Vector2& size )
 {
   EnsureRelayoutData();
 
-  if( size.width > 0.0f )
-  {
-    SetResizePolicy( ResizePolicy::FIXED, Dimension::WIDTH );
-  }
-
-  if( size.height > 0.0f )
-  {
-    SetResizePolicy( ResizePolicy::FIXED, Dimension::HEIGHT );
-  }
+  SetResizePolicy( ResizePolicy::FIXED, Dimension::WIDTH );
+  SetResizePolicy( ResizePolicy::FIXED, Dimension::HEIGHT );
 
   mRelayoutData->preferredSize = size;