[Tizen] Revert the change for 0x0 size of the actor accepted/tizen/unified/20200403.034516 submit/tizen/20200402.012345
authorSeungho, Baek <sbsh.baek@samsung.com>
Wed, 1 Apr 2020 06:02:58 +0000 (15:02 +0900)
committerSeungho, Baek <sbsh.baek@samsung.com>
Wed, 1 Apr 2020 06:06:20 +0000 (15:06 +0900)
This reverts commit b4a3be32fafd046869c65f05a25d6150a1267044.

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

index ed576d1..8fd938e 100644 (file)
@@ -4642,12 +4642,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 );
   }