Hi, I've discovered a really strange bug (at least I think it's one) when creating a new widget containing a SelectBox.
If I add this internal SelectBox using _createChildControlImpl(), the result
is that the component has no arrow, and the borders of the popup are thicker
and ugly.
If I add the same component using a simple this._add(mySelectBox), e.g. in
the constructor of my custom widget, the appearance of the SelectBox is
okay.
I've attached a screenshot of the 2 states of the SelectBox when created as
an internal widget.
I tried to investigate to find what was the radical difference that produces
this result when using child controls but so far I cannot explain it.
A little help could be great!
--Here is the code to reproduce the bug--
qx.Class.define('my.TestWidget', {
extend: qx.ui.core.Widget,
construct: function () {
arguments.callee.base.call(this);
this._setLayout(new qx.ui.layout.VBox());
this.getChildControl('test-selectbox');
},
members: {
// overridden
_createChildControlImpl: function(id) {
var control;
switch(id) {
case 'test-selectbox':
control = new qx.ui.form.SelectBox();
control.add(new qx.ui.form.ListItem('item1'));
control.add(new qx.ui.form.ListItem('item2'));
this._add(control);
break;
}
return control || this.base(arguments, id);
}
}
});
--End--
Thanks in advance
--
Anaël
[email protected]
The eyeos Project | www.eyeos.org | Web Desktop & Cloud Computing Operating
System
<<attachment: selectbox_as_childcontrol.png>>
------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
