Hi Stefan,

it seem to me that only set the alignment to middle is not enough, you have to adapt the appearance when you will use a GroupBox with a middle aligned legend.

Have a look at the classic theme example here it woks:
http://demo.qooxdoo.org/current/demobrowser/demo/widget/GroupBox.html?qx.theme=qx.theme.Classic

Cheers,
Chris

Am 01.09.2010 15:14, schrieb Stefan Andersson:
var nameGB = this.__nameGB = new qx.ui.groupbox.GroupBox(this.tr("Name"));
nameGB.setLegendPosition("middle");

var pfnTF = new qx.ui.form.TextField(this.tr("A full firstname"));

var doc = this.getRoot();

nameGB.setLayout(new qx.ui.layout.Basic());
nameGB.add(pfnTF);

doc.add(nameGB);

------------

The legend is more on the top than in the middle! Additonally the line is not broken!!! It goes through the label. Not very nice I think. Like the FieldSet in many other languages it is broken to give space for the label.

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

Reply via email to