[Tizen] Revert the change for 0x0 size of the actor
authorWonsik Jung <sidein@samsung.com>
Tue, 2 Jun 2020 07:26:50 +0000 (16:26 +0900)
committerWonsik Jung <sidein@samsung.com>
Tue, 2 Jun 2020 07:26:56 +0000 (16:26 +0900)
This reverts commit df3b469e7e6e6897dcc155d91c90a0b9e8d6c937.

Change-Id: I166c3d59767e08c7cf128b61ff4572ed1fcf5f50

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

index 4dfa789..7835e7f 100644 (file)
@@ -4704,12 +4704,12 @@ void Actor::SetPreferredSize( const Vector2& size )
   // A 0 width or height may also be required so if the resize policy has not been changed, i.e. is still set to DEFAULT,
   // then change to FIXED as well
 
-  if( size.width > 0.0f || GetResizePolicy( Dimension::WIDTH ) == ResizePolicy::DEFAULT )
+  if( size.width > 0.0f )
   {
     SetResizePolicy( ResizePolicy::FIXED, Dimension::WIDTH );
   }
 
-  if( size.height > 0.0f || GetResizePolicy( Dimension::HEIGHT ) == ResizePolicy::DEFAULT )
+  if( size.height > 0.0f )
   {
     SetResizePolicy( ResizePolicy::FIXED, Dimension::HEIGHT );
   }