On Jan 18, 2008 4:19 AM, The Rasterman Carsten Haitzler
<[EMAIL PROTECTED]> wrote:
> On Wed, 26 Dec 2007 00:29:27 +0100 "Thomas Gstädtner" <[EMAIL PROTECTED]>
> babbled:
>
> > Hello people,
> >
> > I'm currently working on my first interface in edje and guess I found a bug
> > in the edje-textblock.
> > As I want to do multi-line captions on buttons, I want to have the textblock
> > centered on the button-graphics.
> > I assumed that the valign-property in the style-block was what I wanted, but
> > neither valign=center nor valign=0.5 works.
> > Horizontal align works perfectly.
> > So I also tried to set the align property for the part itself (even if it
> > should be 0.5 0.5 by default) what didn't work, too.
> > As the valign style-property seems to do nothing at all, I assume that's a
> > bug.
> > Can somebody confirm and fix this? :)
>
> valign in a textblock is the alignment WITHIN a line of text - so imagine u
> have a 30point font and a 8point fount on the same line - valign controls 
> where
> the 8point font is aligned.

this clarify things a bit :-) Maybe someone could add it to the wiki?
(please remind me later if nobody does).


> align SHOULD work if you set the min: 1 1; (ie make the minimum size of the
> part controlled by the "minimum" size of the text itself.

given that the part have a _small_ size (ie: height = 0), then part
will grow (due: min: 1 1) and be aligned to _external_ align (the one
inside "description", not the one inside TEXT, not sure TEXTBLOCK have
that), am I right?


-- 
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 2008.
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