PDA

View Full Version : [FIXED] Tooltip dismiss delay 0 throws IllegalArgumentException



axeldxter
18 Jul 2008, 8:27 AM
Hi. I've been having the problem that when I set the dismissDelay in 0, so that the tooltip never hides automatically, the program throws me the following exception:



[ERROR] Uncaught exception escaped
java.lang.IllegalArgumentException: must be positive
at com.google.gwt.user.client.Timer.schedule(Timer.java:112)
at com.extjs.gxt.ui.client.widget.tips.ToolTip.showAt(ToolTip.java:152)
at com.extjs.gxt.ui.client.widget.tips.Tip.showAt(Tip.java:154)
at com.extjs.gxt.ui.client.widget.tips.ToolTip.show(ToolTip.java:139)
at com.extjs.gxt.ui.client.widget.tips.ToolTip$3.run(ToolTip.java:220)
at com.google.gwt.user.client.Timer.fireImpl(Timer.java:164)
at com.google.gwt.user.client.Timer.fireAndCatch(Timer.java:150)
at com.google.gwt.user.client.Timer.fire(Timer.java:142)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)

darrellmeyer
18 Jul 2008, 9:56 AM
You should setAutoHide(false) to stop the hiding of the tooltip. There was a bug with auto hide. The fix is in SVN.

axeldxter
18 Jul 2008, 1:57 PM
Ok, I understand. But what I wanted is that the tooltip didn't hide after a few seconds, but hide after the user leaved the DataView item. I already fixed the issue by setting the dismissDelay to -1, but I think the API documentation is wrong, because it says to set the dismissDelay to 0 to stop the automatic hiding, but that makes the schedule() method throw an exception.

darrellmeyer
21 Jul 2008, 6:27 AM
Fix is in SVN.