From: dan s. <ze...@pe...> - 2005-02-10 20:16:05
|
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 |