Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    imageless IButton

    Hello,

    We have a button which is an IButton (which is a StretchImgButton) showing an Icon and some text. For these buttons, we don't want them rendered with the normal button look: no images.

    We do that by setting
    Code:
    setSrc("");
    This works: button is shown without images in the background.


    SmartGWT 2.1 logs some more warnings about this: the images for start, stretch and end cannot be found.


    So then I tried setting to stop these warnings
    Code:
    setCapSize(0)
    but same warnings come up: why would the framework try to load these images if the property is set to 0 anyway?
    My ultimate solution would be to create 'empty' images, but I'd rather have the DOM not load any image instead.


    This is just lo-priority, but the warnings end up in red in the log, so it's confusing and maybe there's a better solution.
Working...
X