Hi Stefan,
the CheckBox looks good. The height from a CheckBox normally depends
form the font height:
http://tinyurl.com/283sj2o
As you can see the CheckBox has the height from the label and the icon
is smaller. So the icon is aligned (middle) here. The problem you
describes with the one pixel issue is due to the alignment. The height
form the Checkbox is odd and the height from the icon is even, this will
reound the position for the icon.
Cheers,
Chris
Am 01.09.2010 11:19, schrieb Stefan Andersson:
var ex1CB = this.__agreementCB = new qx.ui.form.CheckBox(this.tr("I
have read."));
ex1CB.setEnabled(true);
ex1CB.setRequired(true);
var ex2CB = this.__agreementCB = new qx.ui.form.CheckBox(this.tr("I
have read."));
ex2CB.setEnabled(true);
ex2CB.setRequired(true);
ex2CB.getChildControl("label").setAlignY("middle");
var root = this.getRoot();
root.setLayout(new qx.ui.layout.VBox());
root.add(ex1CB);
root.add(ex2CB);
-------
No change with setAlignY!
Stefan
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel