Thanks much Tobias and all,

height:auto; worked.

Vaibhav.

On May 17, 4:40 am, Tobias Herrmann <t.herrm...@alkacon.com> wrote:
> Hi there,
>
> I have to disagree with Thomas. You only need to be aware that the
> @sprite will set these dimensions. You can override this by setting the
> height or width yourself in the CSS rule where the @sprite is used.
>
> Like this:
> @sprite div.imageClass{
>     gwt-image: yourImage;
>     height: auto;
>     width: 10px;
>
> }
>
> In this case, no other height and width properties will be set by gwt.
>
> Doing it this way, you can still take advantage of the improved
> performance the gwt sprite mechanism provides.
>
> Greetings, Tobias
>
> Zak schrieb:
>
>
>
> > Thanks, that clears things up for me (and I hope Vaibhav as well). I
> > havent made the UiBinder/ClientBundle jump yet, but in reading the
> > documentation I thought that might be an issue. Good to know
> > DataResource can fill that need.
>
> > On May 16, 5:31 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
>
> >> On 16 mai, 21:42, Zak <zakn...@gmail.com> wrote:
>
> >>> 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
>
> >> Yes, just as if you used an Image (withou setUrl or an ImageBundle)
>
> >>> 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?
>
> >> They could (in IE6/7, and/or depending on ClientBundle configuration/
> >> deferred-binding properties)
>
> >> --
> >> 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 
> >> 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 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 
> 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 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.

Reply via email to