[dali_1.4.56] Merge branch 'devel/master' 41/223641/1
authoradam.b <adam.b@samsung.com>
Fri, 31 Jan 2020 11:13:37 +0000 (11:13 +0000)
committeradam.b <adam.b@samsung.com>
Fri, 31 Jan 2020 11:13:37 +0000 (11:13 +0000)
Change-Id: Ib472c9d869acf3da4cc99244f1f5b4634dbe9a58

dali/internal/event/actors/actor-impl.cpp
dali/public-api/dali-core-version.cpp
packaging/dali.spec

index 23c7977..ed576d1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -4638,8 +4638,19 @@ void Actor::SetPreferredSize( const Vector2& size )
 {
   EnsureRelayoutData();
 
-  SetResizePolicy( ResizePolicy::FIXED, Dimension::WIDTH );
-  SetResizePolicy( ResizePolicy::FIXED, Dimension::HEIGHT );
+  // If valid width or height, then set the resize policy to FIXED
+  // 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 )
+  {
+    SetResizePolicy( ResizePolicy::FIXED, Dimension::WIDTH );
+  }
+
+  if( size.height > 0.0f || GetResizePolicy( Dimension::HEIGHT ) == ResizePolicy::DEFAULT )
+  {
+    SetResizePolicy( ResizePolicy::FIXED, Dimension::HEIGHT );
+  }
 
   mRelayoutData->preferredSize = size;
 
index cfb03df..d54fbdd 100644 (file)
@@ -28,7 +28,7 @@ namespace Dali
 
 const uint32_t CORE_MAJOR_VERSION = 1;
 const uint32_t CORE_MINOR_VERSION = 4;
-const uint32_t CORE_MICRO_VERSION = 55;
+const uint32_t CORE_MICRO_VERSION = 56;
 const char * const CORE_BUILD_DATE    = __DATE__ " " __TIME__;
 
 #ifdef DEBUG_ENABLED
index 49cfcef..3196164 100644 (file)
@@ -1,6 +1,6 @@
 Name:       dali
 Summary:    DALi 3D Engine
-Version:    1.4.55
+Version:    1.4.56
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0 and BSD-3-Clause and MIT