Set the PropertyUpdated to true when the label's size changes
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 9 Jul 2024 04:36:36 +0000 (13:36 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Tue, 9 Jul 2024 04:40:02 +0000 (13:40 +0900)
In addition to the size change, there may be more cases where it needs to be set to true.

Change-Id: I06bddeb19ac7f85d662b286ad4da8f33a3e854a6
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/internal/controls/text-controls/text-label-impl.cpp

index d9be4bd..32a6b16 100644 (file)
@@ -1150,6 +1150,11 @@ void TextLabel::OnPropertySet(Property::Index index, const Property::Value& prop
 
   switch(index)
   {
+    case Dali::Actor::Property::SIZE:
+    {
+      mIsPropertyUpdated = true;
+      break;
+    }
     case Toolkit::TextLabel::Property::TEXT_COLOR:
     {
       const Vector4& textColor = propertyValue.Get<Vector4>();
@@ -1209,7 +1214,6 @@ void TextLabel::OnPropertySet(Property::Index index, const Property::Value& prop
     default:
     {
       Control::OnPropertySet(index, propertyValue); // up call to control for non-handled properties
-      mIsPropertyUpdated = true;
       break;
     }
   }