I am trying to customize the Title style for an IButton, but I don't see my style being applied. I expected the CSS style name "stretchTitle" to be applied to the button title text in the example below taken from the showcase.
Inspecting the HTML, I don't see class="stretchTitle" applied for the title text.
This is consistent with the behaviour I am seeing in my code where I can't seem to customize the Title style using IButton.setTitleStyle("customTitle");
For something like a ToolStripButton, this is working, specifically, I do see the class="customTitle" and my style is applied.
Am I misunderstanding something here?
SmartClient Version: v9.1p_2014-04-29/Pro Deployment (built 2014-04-29)
FF ESR 24.5.0/Chrome 34.0.1847.131
Thanks
Code:
final IButton stretchButton = new IButton("Stretch Button"); stretchButton.setWidth(150); stretchButton.setShowRollOver(true); stretchButton.setShowDisabled(true); stretchButton.setShowDown(true); stretchButton.setTitleStyle("stretchTitle"); stretchButton.setIcon("silk/printer.png");
Code:
<div id="isc_7V" style="display:inline-block;margin-left:-22px;:border-box;max-width:100%;padding-left:22px;vertical-align:middle;overflow:hidden;text-overflow:ellipsis">Stretch Button</div>
For something like a ToolStripButton, this is working, specifically, I do see the class="customTitle" and my style is applied.
Code:
<td nowrap="true" style="margin:0px;border:0px;padding:0px;background-image:none;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;" class="customTitle">Save</td>
SmartClient Version: v9.1p_2014-04-29/Pro Deployment (built 2014-04-29)
FF ESR 24.5.0/Chrome 34.0.1847.131
Thanks
Comment