Hello,
I'm trying to make a widget that contains a label with a corresponding
widget. I'm extending the HorizontalBoxLayout and everything is fine
but the width on the label is just being ignored. Am I doing something
wrong?
qx.Class.define("custom.widget.form.LabeledWidget",
{
extend : qx.ui.layout.HorizontalBoxLayout,
construct : function(theLabel, widget, labelWidth)
{
this.base(arguments);
this.setLeft(0);
this.setRight(0);
this.setHeight("auto");
this.setVerticalChildrenAlign("middle");
if (!labelWidth) labelWidth = 100;
this._label = new qx.ui.basic.Atom(theLabel);
with(this._label) {
setLeft(0);
setWidth(labelWidth + 6);
setHorizontalChildrenAlign("left");
}
this.add(this._label, widget);
},
destruct : function() {
this._disposeObjects();
}
});
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel