From 853a3e94efc96af029a00311ddeb5e065309e255 Mon Sep 17 00:00:00 2001 From: Youngbok Shin Date: Sat, 16 Jan 2021 16:42:34 +0900 Subject: [PATCH] evas text: do recalc immediately whenever ellipsis property is changed It was impossible to get properly recalculated size immediately when the ellipsis property is updated. It required some meaningless resize call to trigger the Evas Text calculation. So, the patch put the recalc function in evas_object_text_ellipsis_set() function to do recalc immediately. Change-Id: I425f27e3fa3c37cebddde60e9e357b7238f5a28f --- src/lib/evas/canvas/evas_object_text.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/evas/canvas/evas_object_text.c b/src/lib/evas/canvas/evas_object_text.c index 40c0c80..174ed6b 100644 --- a/src/lib/evas/canvas/evas_object_text.c +++ b/src/lib/evas/canvas/evas_object_text.c @@ -1129,6 +1129,7 @@ _evas_text_ellipsis_set(Eo *eo_obj, Evas_Text_Data *o, double ellipsis) evas_object_async_block(obj); o->prev.ellipsis = o->cur.ellipsis; o->cur.ellipsis = ellipsis; + _evas_object_text_recalc(eo_obj, o->cur.text); o->changed = 1; if (o->has_filter) evas_filter_changed_set(eo_obj, EINA_TRUE); -- 2.7.4