From 997e18abf87773c31647d7169c0d3d60b88e8e2a Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Tue, 9 Jul 2024 13:36:36 +0900 Subject: [PATCH] Set the PropertyUpdated to true when the label's size changes 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 --- dali-toolkit/internal/controls/text-controls/text-label-impl.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp index d9be4bd..32a6b16 100644 --- a/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp @@ -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(); @@ -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; } } -- 2.7.4