Hello,

im am using GWT 2.0 and found a problem with the scaling of .gif
images in IE 7 when the application has been compiled.
I am using the following simple code:
...
VerticalPanel leftVerPan = new VerticalPanel();
Image logo = new Image("img/logo.gif");
leftVerPan.add(logo);
...
everything looks fine in developement mode (IE displays the image
correcly).
When I compile and test with IE the image looks smaller than it really
is (looks like scaled down to half size).
In all other browsers (FF, Opera, Chrome) the image is displayed in
the correct size in developement and compiled versions.
When I change the type of the image to .png will be displayed
correctly in all modes (developement and compiled) with all browser
(including IE 7).
Additionally I tested with the logo.addLoadHandler() and it looks like
that IE has no information about the height and size when it loads the
image (size of "0" is the result in IE when I call logo.getWidth() and
logo.getHeight() inside logo.addLoadHandler();
I also looked at:
 
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/4c3cb004e754d72b/5131e499f2ccabf1?lnk=gst&q=image+ie+wrong+sizw#5131e499f2ccabf1
but that solution does not work in my case.

Any suggestion are welcome.

Kind regards.

Bernhard

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