On 2 juil, 09:34, baalu aanand <[email protected]> wrote:
> Hi alex,
>
> But when the autoHide is disabled, it is not hiding when I
> click outside of the popup. I just need that popup should hide when i
> click outside of the popup but not when i click on the browser scroll
> bar. It actually works fine in IE, but not working in firefox.
I suspect a bug in Firefox (there's one for mouseout events that'll be
fixed in 3.5.1 and is worked around in the upcoming GWT 1.6.5) where
the target of the event is the scrollbar instead of the scrollable
element; therefore, the code in PopupPanel that checks whether the
event targets either the popup or a "partner" will return a false
negative.
To check if it is the case, just override onPreviewNativeEvent (or
onEventPreview in GWT 1.5) and check the event.getEventTarget()
value.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---