[Tizen] Revert the change for 0x0 size of the actor
authorneostom432 <minho.sun@samsung.com>
Mon, 15 Jun 2020 17:04:23 +0000 (02:04 +0900)
committerneostom432 <minho.sun@samsung.com>
Mon, 15 Jun 2020 17:04:28 +0000 (02:04 +0900)
This reverts commit d754bd53aee84761fed8f7858931426064cee3b4.

Change-Id: If54bd93ba537ad013cb281e0137308d5fc0f83a4

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

index 7710dc5bf57769c2b463aecf01c0866b25d1f30d..e6d2b1c270e62a928f9a4a784ebcf0a1319670a0 100644 (file)
@@ -4707,12 +4707,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 );
   }