Re: GWT Sprite adds height attribute in the style class

2010-05-18 Thread jgonian
I have also used the sprite mechanism but without success on IE6/7 when it came to background with "sprite-image". Here is the related issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=4521 and I think it describes the same problem mentioned by Thomas. All we can do for now is s

Re: GWT Sprite adds height attribute in the style class

2010-05-17 Thread Zak
Because IE6/7 does not support the background-clip css property On May 17, 6:28 pm, Thomas Broyer wrote: > On 17 mai, 10:40, Tobias Herrmann 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

Re: GWT Sprite adds height attribute in the style class

2010-05-17 Thread Thomas Broyer
On 17 mai, 10:40, Tobias Herrmann 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

Re: GWT Sprite adds height attribute in the style class

2010-05-17 Thread Vaibhav
Thanks much Tobias and all, height:auto; worked. Vaibhav. On May 17, 4:40 am, Tobias Herrmann 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

Re: GWT Sprite adds height attribute in the style class

2010-05-17 Thread Tobias Herrmann
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;

Re: GWT Sprite adds height attribute in the style class

2010-05-16 Thread Zak
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 wrote: > On 16 mai, 21:42, Zak w

Re: GWT Sprite adds height attribute in the style class

2010-05-16 Thread Thomas Broyer
On 16 mai, 21:42, Zak 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

Re: GWT Sprite adds height attribute in the style class

2010-05-16 Thread Zak
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:

Re: GWT Sprite adds height attribute in the style class

2010-05-15 Thread Thomas Broyer
On 14 mai, 22:13, Vaibhav 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

Re: GWT Sprite adds height attribute in the style class

2010-05-15 Thread Stefan Bachert
Hi, did you try to overwrite height in your css? @sprite .MarkitButton { gwt-image : "MarkitButtonBG_sm"; height: none; Did not try, may work or not. Stefan Bachert http://gwtworld.de On 14 Mai, 22:13, Vaibhav wrote: > Hi, > >       I have implemented ClientBundle in my applic

GWT Sprite adds height attribute in the style class

2010-05-14 Thread Vaibhav
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