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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment