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/-/HVNPocr6kMcJ. 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.
