Open GoogleCodeExporter opened 8 years ago
Workaround (similar done in v2): Use a 'virtual' panel to attach the content of
the InfoWindow and register a close handler to detach the widget when its not
needed anymore.
...
private final VirtualPanel fVirtualPanel = new VirtualPanel();
private static class VirtualPanel extends ComplexPanel {
public void attach(Widget w) {
w.removeFromParent();
getChildren().add(w);
adopt(w);
}
@Override
public boolean isAttached() {
return true;
}
}
...
fVirtualPanel.attach(fInfoWindowContent);
...
fInfoWindow.addCloseClickHandler(new CloseClickMapHandler() {
@Override
public void onEvent(CloseClickMapEvent event) {
fVirtualPanel.remove(fInfoWindowContent);
}
});
Original comment by z...@comerge.net
on 30 Mar 2012 at 4:14
i am facing similar problem
Original comment by niranjan...@gmail.com
on 24 Jul 2014 at 1:24
Original issue reported on code.google.com by
googelyb...@gmail.com
on 16 Mar 2012 at 6:10