From 52b3a0d3057c239c2ca75321864d687d09a9f01f Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Tue, 20 Sep 2022 15:29:01 +0900 Subject: [PATCH] Adjust text fit condition If the calculated text size and layout size are the same in the text fit case, there is an issue of ellisis processing due to the influence of some glyph's advance. So in most cases the layout needs a bit larger size. This patch adds a condition to prevent this issue. Change-Id: I4592c8741d19cce6d33474288d55957a3944149d Signed-off-by: Bowon Ryu --- dali-toolkit/internal/text/controller/text-controller-relayouter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dali-toolkit/internal/text/controller/text-controller-relayouter.cpp b/dali-toolkit/internal/text/controller/text-controller-relayouter.cpp index 3b0c4c3..0d2f765 100644 --- a/dali-toolkit/internal/text/controller/text-controller-relayouter.cpp +++ b/dali-toolkit/internal/text/controller/text-controller-relayouter.cpp @@ -230,7 +230,7 @@ bool Controller::Relayouter::CheckForTextFit(Controller& controller, float point textUpdateInfo.Clear(); textUpdateInfo.mClearAll = true; - if(textSize.width > layoutSize.width || textSize.height > layoutSize.height) + if(textSize.width >= layoutSize.width || textSize.height >= layoutSize.height) { return false; } -- 2.7.4