Using GWT 2.3 and 2.4, IE9 does not set the dimensions of an image
after the image is loaded. In the code fragment below, IE9 will print
"dimensions: 0, 0":
Image image = new Image("android.png");
image.addLoadHandler(new LoadHandler() {
public void onLoad(LoadEvent event) {
GWT.log("dimensions: "+image.getWidth()+" x "+image.getWidth());
}
});
image.setVisible(false);
RootPanel.get().add(image);
This makes it impossible to scale or crop and image for display in an
SVG Canvas.
Firefox, Chrome, and Safari all give the correct dimensions.
--
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.