From: Bowon Ryu Date: Tue, 20 Sep 2022 06:29:01 +0000 (+0900) Subject: Adjust text fit condition X-Git-Tag: dali_2.1.41~3 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=52b3a0d3057c239c2ca75321864d687d09a9f01f 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 --- 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; }