From 0f0b61df716268fcd03190282e0ac4d2168fd0f5 Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Tue, 14 Sep 2021 18:51:34 +0900 Subject: [PATCH] Fix PlaceholderTextColor update issue There is a problem that the color does not change when PLACEHOLDER_TEXT_COLOR is dynamically set. This patch updates the text color in SetPlaceholderTextColor(). Change-Id: Id4b5afafdab28756018394ea6c655cfa1cd10a42 Signed-off-by: Bowon Ryu --- dali-toolkit/internal/text/text-controller-placeholder-handler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dali-toolkit/internal/text/text-controller-placeholder-handler.cpp b/dali-toolkit/internal/text/text-controller-placeholder-handler.cpp index 301dbcb..d649371 100644 --- a/dali-toolkit/internal/text/text-controller-placeholder-handler.cpp +++ b/dali-toolkit/internal/text/text-controller-placeholder-handler.cpp @@ -322,6 +322,8 @@ void Controller::PlaceholderHandler::SetPlaceholderTextColor(Controller& control if(controller.mImpl->IsShowingPlaceholderText()) { controller.mImpl->mModel->mVisualModel->SetTextColor(textColor); + controller.mImpl->mModel->mLogicalModel->mColorRuns.Clear(); + controller.mImpl->mOperationsPending = static_cast(controller.mImpl->mOperationsPending | COLOR); controller.mImpl->RequestRelayout(); } } -- 2.7.4