On 14 mai, 22:13, Vaibhav <[email protected]> wrote: > Hi, > > I have implemented ClientBundle in my application and so far it > is working fine until I came across this issue. I have a css class > which has a background image so I defined it as a sprite in my css. I > am using this css class on Button and it looks okay. But I lost > vertical text alignment inside Button. I did little research and I > found height attribute is added by GWT compiler for the height of the > image and that has disturbed vertical alignment of the text inside > button. When I removed height in firebug it looks all right. Is there > any way to workaround this issue?
It actually comes from the definition of "CSS sprite" itself. You'd rather use a DataResource than an ImageResource, with a @url instead of @sprite. http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#References_to_Data_Resources -- 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.
