Thomas, does this mean that @sprite should only be used when it's okay
for the element to be constrained to the same dimensions (or just
height or width in the case of repeated backgrounds) as the image? For
example, if we went with Stefan's proposal of overriding the height
rule (let's say height: auto), would the other images in the image
strip become visible?

On May 15, 4:13 pm, Thomas Broyer <[email protected]> wrote:
> 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.htm...
>
> --
> 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 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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.

Reply via email to