From: Bowon Ryu Date: Tue, 9 Jul 2024 04:36:36 +0000 (+0900) Subject: Set the PropertyUpdated to true when the label's size changes X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=997e18abf87773c31647d7169c0d3d60b88e8e2a;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git 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 --- 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; } }