Hi guys,

I'm trying to implement an edje group that will act as an icon-label
pair, label being a TEXTBLOCK that I want to restrict to maximum of 2
lines. This is being done with label's part providing min/max and
testing with hard-coded text values it works (in edje_editor).

However, I want to layout these icons in rows, that will be layout
vertically. In order to avoid blanks when I have rows with no label
using 2 lines, I was trying to use edje_object_size_min_calc(), but
its behavior is weird.

What I'd expect is it to calculate my icon geometry (both min/max set
to 128x128) and then labels geometry or any other relevant part and
then get the maximum of (x + w, y + h), this being the minimum size to
fit the whole contents. If I do this algorithm manually it works, but
edje_object_size_min_calc() keep reporting (0, 0)... an unexpected
result given that my icon is fixed to 128x128.

What I find more weird is the internals of edje_object_size_min_calc():
 1) it use as "w" (and "h" similar) as  "w = ep->w - ep->req.w". Why?
 2) if description is "fixed", its size is ignored. Why?

Am I missing something?

PS: Attached is my Edje, maybe I missing some property there?

-- 
Gustavo Sverzut Barbieri
--------------------------------------
Jabber: [EMAIL PROTECTED]
   MSN: [EMAIL PROTECTED]
  ICQ#: 17249123
 Skype: gsbarbieri
Mobile: +55 (81) 9927 0010
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to