On Tue, 2009-01-06 at 20:20 -0500, Derrell Lipman wrote: > On Tue, Jan 6, 2009 at 5:24 PM, Mr. Hericus <m...@hericus.com> wrote: > Hi All,
> > Hi. No, it's not a bug; it's just a different paradigm than was used > in 0.7. In 0.8, each widget has a preferred width. Simple widgets > (ones without a layout), like a Label, typically have a preferred > width of 100. Compound widgets (with a layout), such as a ComboBox, > have a preferred width of the sum of the constituent part preferred > widths. The text portion of the ComboBox has preferred width 100, and > the pull-down handle has some additional preferred width, for a total > of something more than 100, thus your widgets don't line up. You can > solve your current problem by setting the preferred width of the > ComboBox objects to 100: > > l2_t1.setWidth(100); > l2_t2.setWidth(100); > l3_t2.setWidth(100); > l4_t1.setWidth(100); > > You could, of course, also create a subclass of ComboBox that did this > for you in its constructor. > Excellent. I'll go with this solution and set the preferred width of the ComboBox in my layout factory. > Cheers, > > Derrell Thanks for the tip :-) Sincerely, Mr. Hericus m...@hericus.com http://www.hericus.com/ ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel