Hi all,
Thanks for your replies. I used onEventPreview() method and it worked fine for me. Thanks again Baalu On Jul 2, 6:03 pm, "alex.d" <[email protected]> wrote: > Actually it's the same behavior with FF 3.0 - popup is hidden when > clicking on the scrollbar. I would also suggest overriding > onPreviewNativeEvent. > > On 2 Jul., 14:30, Thomas Broyer <[email protected]> wrote: > > > 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 -~----------~----~----~----~------~----~------~--~---
