Set ResizePolicy::FIXED even though the size is 0 30/221330/3
authorHeeyong Song <heeyong.song@samsung.com>
Tue, 31 Dec 2019 06:38:10 +0000 (15:38 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 20 Jan 2020 06:15:16 +0000 (06:15 +0000)
Change-Id: Ic059465bc7d86faf5d8be9c9af439326bf9d8450

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

index 44a9e89..23c7977 100644 (file)
@@ -4638,15 +4638,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;