It is flipping between a clipped and unclipped image that removes the styles: https://code.google.com/p/google-web-toolkit/issues/detail?id=3274
-- In GWT 2.6, most images will be unclipped, whereas in previous versions, as soon as you use setResource or setVisibleRect you use a clipped image, and setUrl uses an unclipped image (and by default, the image is unclipped).
On Tuesday, January 21, 2014 11:48:25 AM UTC+1, Mohammad Al Quraian wrote:
On Tuesday, January 21, 2014 11:48:25 AM UTC+1, Mohammad Al Quraian wrote:
I am using the GWT Image widget then I am setting the image resource dynamically. When I do so the style class name of the image gets removed. I used UiBinder also tested on the java code as:image.setStyleName(styles.topLogo()); image.setResource(logo);This would also removed the style name, however, the following would not:image.setResource(logo);image.setStyleName(styles.topLogo()); So, my guess is that setResource foe some reason removes the previously defined style name. Is that a bug or a bug that is disguised as a feature?
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment