deleted-user-ugCMpXci8bn5

infoWindow does not open on initial load of line and polygon feature layers

Discussion created by deleted-user-ugCMpXci8bn5 on Aug 30, 2013
I am using a popup infoWindow with Feature Layers.
When initially loaded, the infowWindow pops up as expected for point layers, but it does not pop up immediately for line and polygon layers.  If I zoom in or out after the initial load, the infowWindow then works as expected.
How can I change this, so that the infoWindow opens on the first click for all the layer types?
code below, thanks, Jason

map constructor:
var infoWindowPopup = new esri.dijit.Popup(null, dojo.create("div"));

    map = new esri.Map("map", {
        extent: startExtent,
        infoWindow: infoWindowPopup
    });


example: point layer (infoWindow works as expected on initial load):
           pointLayer = new esri.layers.FeatureLayer("http://[server]/ArcGIS/rest/services/[pointLayer]/MapServer/6", {
                id: "pointLayer",
              //  opacity: 0.9,
                mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
                infoTemplate: infoTemplate1,
                outFields: ["*"]
            });


example: line layer(infoWindow does not open on click, on initial load):
            lineLayer = new esri.layers.FeatureLayer("http://[server]/ArcGIS/rest/services/lineLayer/MapServer/7", {
                id: " lineLayer",
               // opacity: 0.9,
                mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
                infoTemplate: infoTemplate1,
                outFields: ["*"]
            });

Outcomes