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
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
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.
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("");
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)
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.