Hi Anaël, On Friday January 29 2010 18:14:35 Anaël Ollier wrote: > 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! The difference is the appearance of your widget. If you use a child control an appearance id is automatically created. So e.g. your widget does redefine the appearance property with "myWidget" and you create a child control with the id "test-selectbox". For this case you need to add the following entry to your appearance theme
--snip-- "myWidget/test-selectbox" : "selectbox", --snip-- However, if you use the "_add" method directly no appearance id is created and everythings looks right, because the default appearance "selectbox" is used. cheers, Alex ------------------------------------------------------------------------------ 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
