Revert "Revert "evas text: fixed the text cut issue when an effect is applied"" 01/91401/1
authorShinwoo Kim <cinoo.kim@samsung.com>
Fri, 7 Oct 2016 08:32:59 +0000 (17:32 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Fri, 7 Oct 2016 08:33:13 +0000 (17:33 +0900)
This reverts commit e025d96deaf256574358377f3a93025f150d137d.

Change-Id: I8b3e7add6a9cd6e09d746cc483e18e8524e9ee2c

src/lib/evas/canvas/evas_object_text.c

index b35bacd..019a633 100644 (file)
@@ -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));