Login Register

showLabel=

Button with showLabel="false" has first not the right size

I have some buttons which look like this:

<button dojoType="dijit.form.Button" onClick='save()' iconClass="saveIcon" showLabel="false">
   <span><b>Rich</b><i> Text</i> Test!</span>
</button>

I load this html snippet later, not with loading the site. I parse the node with dojo.parser.parse(node);
My problem is, that the button first has another size because of the span-tag. It takes a while until the button gets the correct size.
My iconClass:


.saveIcon {
background-image: url(icons/save.gif);
background-repeat: no-repeat;

Syndicate content