The center() method calls hide() which triggers the onPopupClosed. I had this problem, but since I couldn't believe it hadn't been noticed in testing before release, I assumed there must be a good reason for it, or that *not* doing it means I had been following some evil coding practice. Again.
Ian http://examples.roughian.com 2008/9/18 Paul <[EMAIL PROTECTED]> > > I have noticed that the Popup has changed from 1.4 to 1.5 > > In 1.4 I could write > > Popup popup = new Popup(); > popup.addPopupListener(new PopupListener() > { > public void onPopupClosed(PopupPanel sender, boolean autoClosed) > { > Window.alert("HI"); > } > }); > popup.show(); > > and it would work > > In 1.5 if I write it this way the onPopupClosed fires before the popup > shows. It will fire when I close the popup too late by now. > > Is this now the new rule add the listener after the show or center > method is called. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
