Hello,

I've been playing with the textblock in relation to EWL a bit lately and have 
run into an issue. In the textblock, until you evas_object_resize, the width is 
always 0 (I consistently seem to get height 3 back for some reason).

Now, the problem with EWL is that it wants to get the size of the formatted 
region and then resize/set its preferred size to that size. Now, Nathan has a 
workaround:

  <RbdPngn> ok, so here's teh work around to discover preferred size
  <RbdPngn> fill in your text to the textblock
  <RbdPngn> resize the object to a starting size, probably start small
  <RbdPngn> resize and query the y position of the end of the text
  <RbdPngn> repeat until y doesn't change

But, I don't think this will work for scrollpane.

Is there a way we could say, what is the formatted size of this 
evas_object_textblock using the longest line as the evas object width?

(The test program I was using is http://www.everburning.com/tmp/e.c)

dan







-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to