From f9d5958155b98c47be54599791812482677ba1ab Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Tue, 31 Dec 2019 15:38:10 +0900 Subject: [PATCH] [Tizen] Set ResizePolicy::FIXED even though the size is 0 Change-Id: Ic059465bc7d86faf5d8be9c9af439326bf9d8450 --- dali/internal/event/actors/actor-impl.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/dali/internal/event/actors/actor-impl.cpp b/dali/internal/event/actors/actor-impl.cpp index e623464..4a99aa7 100755 --- a/dali/internal/event/actors/actor-impl.cpp +++ b/dali/internal/event/actors/actor-impl.cpp @@ -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; -- 2.7.4