Hi, I've got some custom code that takes a Widget, an ImageResource
and a RepeatStyle and puts that image as the background for that
widget. It works perfectly in IE8, FF, and Chrome, but it does not
work in IE7. The data appears to get messed up in the
Style.setProperty() method for the attribute
public static void setBGImage(Widget w, ImageResource img, RepeatStyle
repeatStyle){
String background =
"url(\"" + img.getURL() + "\") " +
img.getLeft() + " " +
img.getTop()
;
if (repeatStyle == Repeat
SOLVED!
Ya, nvm, I solved it. I just needed to use negative values on the int
values returned by ImageResource.getLeft() and ImageResource.getTop()
and add "px" to them for the string.
cheers!
On Jun 17, 4:45 pm, Sky wrote:
> public static void setBGImage(Widget w, ImageResource img, RepeatStyl