Try using: popup.addAutoHidePartner(yourButton.getElement());
This should disable the auto hide functionality when clicking on the button, so you can control the popup visibility yourself based on popup.isShowing() when clicking the button. -- J. Am Sonntag, 18. März 2012 22:31:56 UTC+1 schrieb Jonas: > > I have a popup with setAutoHideEnabled (it automatically hides when you > click somewhere outside of it). > I display it using a button but I want to have toggle functionality. First > click shows the popup, then second > click on button hides it (but clicking somewhere outside also hides it). > The problem is that when I click > the button the second time the popup first gets hidden because of auto > hide and then is shown again. > Any ideas on how to solve this? > > I also apply some styling on the button depending on popup visibility, so > would like to remove the style when > the popup is hidden using autohide. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/x78ubVK3MxkJ. 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.
