From: Mårten K. <mar...@di...> - 2010-10-04 13:37:16
|
Hi! I ran into problems when trying to adding a CloseListener to a FramedCloud. The problem is similiar to what Christopher Navarro has described in a post from february this year. The onPopupClose is caught as expected when using the base class Popup (org.gwtopenmaps.openlayers.client.popup.Popup), but doesn't work with FramedCloud (org.gwtopenmaps.openlayers.client.popup.FramedCloud). Chris, did you ever get this working? Does anybody else know something about this problem? I did some debugging using Firebug and it seems like one extra close box is added when using FramedCloud. The extra close box conflicts with the original close box as it has the same div id. They also listen to different events and appearance. The first acts like default and closes the popup when clicked but does not fire the onPopupClose event. Its position has changed to upper left corner of the ???_GroupDiv. The extra close box is not visible since it gets no z-index set, but it is hidden on the original position of the first close box, i.e. the upper left corner of "the cloud". This close box fires the onPopupClose event but does not close the popup. Any suggestions? Regards Mårten Karlberg |