PDA

View Full Version : Invalid Argument in GXTClippedImageImplIE6:Line 62



monk3y
3 Sep 2009, 2:07 AM
Hi everyone

Enviroment-IE8
GXT : 2.0.1
GWT: 1.7

i'm having an issue in IE8(FF works fine). I have an Image(that gets shown through an ImageBundle clipping). That works fine. As soon as they click on the arrow the GXT Window shows fine. When the cursor moves out of the image i get the following error.



[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (Error): Invalid argument.
number: -2147024809
description: Invalid argument.
at com.google.gwt.dom.client.DOMImplTrident.dispatchEvent(Native Method)
at com.google.gwt.dom.client.Element$.dispatchEvent$(Element.java:81)
at com.extjs.gxt.ui.client.core.impl.GXTClippedImageImplIE6$1.execute(GXTClippedImageImplIE6.java:62)
at com.google.gwt.user.client.CommandExecutor.doExecuteCommands(CommandExecutor.java:310)
at com.google.gwt.user.client.CommandExecutor$2.run(CommandExecutor.java:205)
at com.google.gwt.user.client.Timer.fireImpl(Timer.java:160)
at com.google.gwt.user.client.Timer.fireAndCatch(Timer.java:146)
at com.google.gwt.user.client.Timer.fire(Timer.java:138)


Test Class


public class Testing implements MouseOverHandler, MouseOutHandler, ClickHandler{

public DockPanel myDock=new DockPanel();
public Image playImage=new Image();

TestImages images;

//Default constructor
public Testing(){}

public DockPanel createContainer(){
createImages();
registerListeners();
setupPlay();
return myDock;
}

public void createImages(){
playImage.setSize("43px", "43px");
images=(TestImages) GWT.create(TestImages.class);
playImage=images.startGrey().createImage();
}


public void registerListeners(){
playImage.addMouseOverHandler(this);
playImage.addMouseOutHandler(this);
playImage.addClickHandler(this);
}

/*******
* Sets up the play button.
* @since version 1.0.
* */
public void setupPlay(){
myDock.setSize("280px", "130px");
myDock.add(playImage,DockPanel.CENTER);
}

public void onMouseOver(MouseOverEvent event) {
images.startGreen().applyTo(playImage);
}

public void onMouseOut(MouseOutEvent event) {
images.startGrey().applyTo(playImage);
}

public void onClick(ClickEvent event) {
new Minez();
}

public class Minez extends Window{
public Label test=new Label("");

public Minez(){
super();
this.add(test);
this.setSize(200, 300);
this.show();
this.center();
}

}
}


Images Interface


public interface TestImages extends ImageBundle{

/**
* @Resource startgreen.png
*/
AbstractImagePrototype startGreen();

/**
* @Resource startgrey.png
*/
AbstractImagePrototype startGrey();

}


Any help would be appriciated.
Thanks

monk3y
7 Sep 2009, 10:48 PM
Anyone have any feedback on this?

JavaDirk
8 Dec 2009, 6:43 AM
Ever tried this?
http://www.extjs.com/forum/showthread.php?p=412673