I created a TreeGrid that it is working fine except the size of its tree node label. Its label is as big as “Ajax RIA system” in the header of this web site.
In the beginning I thought it was something wrong with my code, thus I copied and tested
Most likely, the skin is not loading properly. Check your .jsp or .html file against the examples provided in smartclientSDK/templates and be sure the relative paths are all correct. If they appear to be correct, use Firebug to ensure that the assets of the skin (in particular skin_styles.css) are being loaded properly.
Oh, sorry, this is a SmartGWT, not SmartClient question. Only the last step applies: look with Firebug to see whether the skin files are not present where they are being requested.
As shown in Firebug, the property ‘font-size:small’ dervied from standard.css is the actual style of the tree nodes. It means somehow Smart Client own styles are overriden by this file.
My workaround is simple: redeclaring this style in module css to be
If you used GWT’s appGenerator to create the initial project, it includes a base CSS file. Do not include this file as the defaults it sets interferes with the SmartGWT CSS settings.