If I make a class like;
public class CroppedImageSet extends SimplePanel {
final Image Background = new Image("");
public TransitionGridImage(){
this.add(Background);
Background.setUrl("http://www.google.com/images/logo.gif");
Background.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
Background.setVisibleRect(0, 0, 50, 50);
}
});
}
public void Show(){
RootPanel.get().add(this,0,0);
}
}
Then click the picture, the image vanish's, rather then gets cropped.
(IE6, hosted mode)
Can anyone explain why :?
Probably missing something obvious here, but I just cant see it.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---