t-roth

Keep infoWindow from covering graphic

Discussion created by t-roth on Jun 12, 2013
Latest reply on Jun 13, 2013 by stevel
How can I keep the infoWindow from covering the graphic?

I show the infoWindow in mouse-over using the following code,  but half the time it ends up covering the graphic.

                       map.graphics.on("mouse-over", function (evt) {
                           var g = evt.graphic;

                            if (evt.ctrlKey)
                                map.setMapCursor("move");

                            map.infoWindow.currentGraphic = g;
                            map.infoWindow.setContent(g.content);
                            map.infoWindow.setTitle(g.title);
                            
                            map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));
                            
                        });

Outcomes