From 06c9c222c57dbd7589fed46015aeb51bf27d78e8 Mon Sep 17 00:00:00 2001 From: Youngbok Shin Date: Tue, 17 Jan 2017 15:43:54 +0900 Subject: [PATCH] evas textblock: +1 to formatted width from Textblock Because, formatted width is always smaller than the given size, Edje can't use formatted size as a Textblock part's size directly. If formatted size is used directly, you will see narrower/taller Textblock part. It replace the following patch. commit bbf5d78d385784f2e2dfdc0830808967a919d054 "edje_calc: give +1 width from calculated width of formatted_get" @tizen_fix Change-Id: I16532d6fdf94277b54b69629cca0f365cdc85538 (cherry picked from commit b609c40cbbfc5b9e864fb43875c691fa65eaa445) --- src/lib/evas/canvas/evas_object_textblock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c index 32a9492..055b2ea 100644 --- a/src/lib/evas/canvas/evas_object_textblock.c +++ b/src/lib/evas/canvas/evas_object_textblock.c @@ -12499,7 +12499,11 @@ _evas_textblock_size_formatted_get(Eo *eo_obj, Evas_Textblock_Data *o, Evas_Coor evas_object_async_block(obj); _relayout_if_needed(eo_obj, o); + /* TIZEN_ONLY(20170117): +1 to formatted width from Textblock if (w) *w = o->formatted.w; + */ + if (w) *w = o->formatted.w + 1; + /* END */ if (h) *h = o->formatted.h; } -- 2.7.4