Thursday, May 31, 2012

Re: Help to implement behavior for popup widget.

What I do is add a mouse out/over handler to both the image and popup panel.

The mouse out handlers kick off timers that after, say, .25 seconds close the popup if it's open.  The mouse over handler on the popup cancels any close timers running and the mouse over handler on the image does the same and also kicks off a timer to show the popup after a short period of time (if the popup isn't currently showing).

Basically, that allows you to move your mouse between the image and the popup in a reasonable amount of time without the popup being closed automatically, but still does allow you to mouse out of the popup and still have it close automatically.

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment