Hi,
alignX docs says:
Horizontal alignment of the item in the parent layout.
so by calling field.setAlignX("right"); you re actually aligning the label to 
the right of its parent container.
what you want is the text inside the label to be to the right side of the label.
you should call:
field.textAlign('right');

here is a demo:
http://tinyurl.com/2csq6x5

cheers,
Gabi
________________________________________
From: [email protected] [[email protected]]
Sent: Thursday, December 30, 2010 2:58 AM
To: qooxdoo Development
Subject: [qooxdoo-devel] setAlignX

i try to add some lables to a grid and then i  want to align  the text to the 
right

                field = new qx.ui.basic.Label("00:00");
                field.setPadding(4);
                field.setDecorator("main");
                field.setAllowGrowX(true);
                field.setBackgroundColor("#ffffff");
                field.setAlignX("right");
                this.containers[k].add(field, {row: row, column: column});
                column++;

but the alignment  alwys tioo the left:(

Is this a bug, or what  do i  wrong?

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to