From: tasn Date: Sun, 30 Jan 2011 10:39:16 +0000 (+0000) Subject: Evas text object: Hacked a fix to string size get which fixes elipsis and many other... X-Git-Tag: submit/trunk/20120815.174732~2050 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47020843a114807276338c9ee3a9660c008fb73f;p=profile%2Fivi%2Fevas.git Evas text object: Hacked a fix to string size get which fixes elipsis and many other stuff. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@56480 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_object_text.c b/src/lib/canvas/evas_object_text.c index 227092f..170648a 100644 --- a/src/lib/canvas/evas_object_text.c +++ b/src/lib/canvas/evas_object_text.c @@ -278,7 +278,8 @@ _evas_object_text_vert_advance_get(const Evas_Object *obj, return adv; } -/* FIXME: doc */ +/* FIXME: returns the advance instead of the width just because it's usuallly + * bigger, major hack, should fix. */ static void _evas_object_text_string_size_get(const Evas_Object *obj, const Evas_Object_Text *o, @@ -291,7 +292,7 @@ _evas_object_text_string_size_get(const Evas_Object *obj, w = h = 0; EINA_INLIST_FOREACH(EINA_INLIST_GET(o->items), it) { - w += it->w; + w += it->adv; if (it->h > h) { h = it->h;