Figured this one out as well - posting it for completeness of this thread. you need to add height: auto; width: auto css properties (or different values based on your needs)
Joe On Aug 9, 11:40 pm, Joe Hudson <[email protected]> wrote: > Hi, > > I'm trying to use a css bundle with a background image reference and I > am getting an error in the Development Mode Eclipse view: Fix by > adding String accessor method(s) to the CssResource interface for > obfuscated classes, or using an @external declaration for unobfuscated > classes. > > When I add an @external at-rule I no longer receive the error but the > background image doesn't show up. More specifically, I do see all > other css attributes when inspecting the DOM but just not the > background-image attribute. > > Here is my code (snipped for readability) > > --- CSS file > @sprite .error { > gwt-image: 'error'; > > } > > .errorMessage { > background-color: #FEEFB3; > gwt-image: 'warn'; > > } > > -- Client Bundle > public interface MessagePanelClientBundle extends ClientBundle { > > @Source("message-panel.css") > MessagePanelCSS css(); > > @Source("error.png") > ImageResource error(); > > } > > -- Css Bundle > public interface MessagePanelCSS extends CssResource { > > String errorMessage(); > > } > > Does anyone have any ideas as to why this might happen? Any help > would be appreciated. Thanks. > > Joe -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
