On Sat, Aug 20, 2011 at 8:58 PM, Gustavo Sverzut Barbieri
<[email protected]> wrote:
> On Sat, Aug 20, 2011 at 8:48 PM, Gustavo Sverzut Barbieri
> <[email protected]> wrote:
>> On Sat, Aug 20, 2011 at 8:37 PM, Gustavo Sverzut Barbieri
>> <[email protected]> wrote:
>>> Guys, particularly Tasn, could you please check the following EDC,
>>> it's not working as you can see on your own (try with edje_player):
>>>
>>> collections {
>>>   group { name: "main";
>>>      parts {
>>>         part { name: "text";
>>>            type: TEXT;
>>>            description { state: "default" 0.0;
>>>               text {
>>>                  font: "Sans";
>>>                  size: 72;
>>>                  text: "contents";
>>>                  fit: 0 1;
>>>                  min: 1 0;
>>>               }
>>>            }
>>>         }
>>>      }
>>>   }
>>> }
>>>
>>> as you see it tries to fit the font on height (fit: 0 1) and asks the
>>> text to define the part's minimum size (min: 1 0) using that font.
>>> This is a common usage pattern and I was using it to create
>>> "width-for-height" in clock when I noticed this bug.
>>>
>>> I'll investigate it myself, but if someone that knows the code could
>>> check. Likely it's applying ellipsis while it shouldn't.
>>
>> Likely revision 62639 fixes it, please check if it's the correct solution.
>
> BTW, if you use edje_player and the above example, goes resizing pixel
> by pixel you'll find some kind of bug in the fit algorithm... it goes
> to a huge size, totally off, then goes back to normal...

OMG, damn... edje's text thing is completely broken! At least with
regards to calculate... as it will calculate one thing, but at apply
will do others!

I've noticed this because my patch 62639 will not have correct "min"
for min_calc. Checking the reason I've noticed that whenever the
actual font size was, during the min calculation it was always "72",
the original size! The text was also the current set, in the case will
ellipsis it should fail as well (although not matter here as I defined
min.x==1 -> no-ellipsis).

I'll try to fix... but damn, it seems very wrong :-/

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [email protected]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
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-d2d-2
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to