Image image1 = New Image(ImageResources);
image1.setSize("200px", "180px");
the image cannot shrink to fit the image1 widget, but only a portion
of the image is shown.
if using
Image image1 = New Image(ImageResources.getSafeUri());
image1.setSize("200px", "180px");
the image can shrink to fit the size of image1 widget.
why there is so different?
--
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