So what is your question?

If you fix a width like "200px" etc for a image widget, any image
loaded inside it will resize itself to that dimension. In order to get
away from that, assign either "100%" or blank string "" or any thing
that is not a width. And the browser will ignore it.

Rakesh Wagh


On Oct 15, 9:16 am, "David E." <[EMAIL PROTECTED]> wrote:
> I was having problems with "old" images maintaing their width and
> height attributes when replaced with new images with the same url.
> i.e. the image at the url is replaced with a different image.
>
> Unfortunately, the option of changing the image file name to force new
> values for width and height was not an option in my case.
>
> While researching a solution, I discovered that if I add the following
> lines to remove the width and height attributes which are never
> updated when the image at the url are changed, the image is resized
> appropriately both in hosted and web mode. I am using GWT 1.4.61
>
> DOM.removeAttribute(image.getElement(), "width");
> DOM.removeAttribute(image.getElement(), "height");
--~--~---------~--~----~------------~-------~--~----~
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