Did this make sense to anyone? To be more descriptive, even though I am setting the label width

setWidth(labelWidth + 6);

The label width that I set is being ignored and the label width is the size of the contents in the label. So, if I am using more than one of these widgets, the values will not be in the same x position. I am using 7 alpha 2 and would really appreciate any help that might be offered. Thanks.

Joe

-------- Original Message --------
Subject: [qooxdoo-devel] label width inside a HorizontalBoxLayout doesn't seem to work
Date:   Fri, 27 Apr 2007 14:24:40 -0400
From:   Joe Hudson <[EMAIL PROTECTED]>
Reply-To:       qooxdoo Development <[email protected]>
To:     qooxdoo Development <[email protected]>



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


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

Reply via email to