I have a Tree whose TreeItems I originally created according to the Mail sample way back under GWT 1.2:
private String imageItemHTML(String imageUrl, String title) { return "<span><img style='margin-right:4px' src='" + imageUrl.toLowerCase() + "'>" + title + "</span>"; } This approach allows for highlighting of the entire TreeItem, and transitioned easily to ImageBundles: private String createHeaderHTML(AbstractImagePrototype imageProto, String caption) { return "<span style='white-space:nowrap'>" + imageProto.getHTML() + caption + "</span>"; } Along comes GWT 2 and the ImageResource. No problem (or so I think): private String createHeaderHTML(ImageResource imageRsrc, String caption) { return "<span style='white-space:nowrap'><img src='" + imageRsrc.getURL() + "'>" + caption + "</span>"; } All well and good in Firefox and Safari, but not in IE. In IE (I'me testing with IE7) I get the **entire** image bundle of some dozen 16x16 icons. How can I get the same effect--one image--without creating them individually?
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.