Dear All, Hi!

I have got a problem, when I used evas_object_textblock with edje.
I am using the following style for textblock which has width 380.

           style { name: "tle_style";
              base: "font=MYFONT:style=Medium font_size=24 align=center
color=#ffffff wrap=mixed ellipsis=1.0";
              tag:  "br" "\n";
              tag:  "ps" "ps";
              tag:  "hilight" "+
font=SLP:style=Bold";

              tag:  "b" "+ font=MYFONT:style=Bold";
              tag:  "whitecolor" "+ color=#ffffff";
              tag:  "tab" "\t";
           }

And the following statement is used for the textblock.
    <b>Warcraft_KR</b>  우하하 너무 잼나요  RT

After calculated width of above statement is 381.

In this case, edje_object_size_min_restricted_calc() take loops(4000 times?)
until it will meet some condition (ed->w > 4000).
Anyhow, attached patch cannot resolve the fundamental problem. it is just
temporal solution.
If this patch is reasonable, please take it before we find more proper way.

Sincerely,
Shinwoo Kim.
Index: src/lib/canvas/evas_object_textblock.c
===================================================================
--- src/lib/canvas/evas_object_textblock.c	(revision 62334)
+++ src/lib/canvas/evas_object_textblock.c	(working copy)
@@ -3494,6 +3494,7 @@ _layout_handle_ellipsis(Ctxt *c, Evas_Object_Textb
       eina_inlist_append(EINA_INLIST_GET(c->ln->items),
             EINA_INLIST_GET(_ITEM(ellip_ti)));
    _layout_line_finalize(c, ellip_ti->parent.format);
+   if (c->w < c->wmax) c->wmax = c->w;
 }
 
 #ifdef BIDI_SUPPORT
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to