From: Youngbok Shin Date: Thu, 6 Oct 2016 11:41:06 +0000 (+0900) Subject: evas text: fixed the text cut issue when an effect is applied X-Git-Tag: accepted/tizen/common/20161007.173244~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F59%2F91259%2F2;p=platform%2Fupstream%2Fefl.git evas text: fixed the text cut issue when an effect is applied It is caused by missing left, right style pad values. @tizen_fix Change-Id: I5e76ddb1f9873994e28680e74be461619fb14150 --- diff --git a/src/lib/evas/canvas/evas_object_text.c b/src/lib/evas/canvas/evas_object_text.c index b35bacd..019a633 100644 --- a/src/lib/evas/canvas/evas_object_text.c +++ b/src/lib/evas/canvas/evas_object_text.c @@ -2295,7 +2295,7 @@ _evas_object_text_recalc(Evas_Object *eo_obj, Eina_Unicode *text) /* TIZEN_ONLY(20160305): Remove a whitespcae from the right end of ellipsized RTL text min = w + l + r < obj->cur->geometry.w || obj->cur->geometry.w == 0 ? w + l + r : obj->cur->geometry.w; */ - min = w + l + r < obj->cur->geometry.w || obj->cur->geometry.w == 0 ? w + l + r : _evas_object_text_horiz_advance_get(o); + min = w + l + r < obj->cur->geometry.w || obj->cur->geometry.w == 0 ? w + l + r : _evas_object_text_horiz_advance_get(o) + l + r; /* END */ eo_do_super(eo_obj, MY_CLASS, efl_gfx_size_set(min, h + t + b));