Rather than add messy code you can see this issue here, in an Attribute Inspector sample I followed: ArcGIS API for JavaScript Sandbox
In the map.infoWindow.resize() function I can change the width value, hit run, and see the map's infoWindow change width. However, I cannot get it to change height using the resize function.
In my code, it works fine if I am setting the infoWindow content using a featureLayer's infoTemplate property.The resizing problem only starts when I am setting the Attribute Inspector dijit outside of the Editor (I haven't tested it with the editor widget, but I wanted to specify that I am not using it) as the info window's content.
Solved! Go to Solution.
Hi Sarah,
Have you tried using CSS to define the height of your popup content?
The following works in the above sandbox code:
.atiAttributes{
height:300px;
}
Hi Sarah,
Have you tried using CSS to define the height of your popup content?
The following works in the above sandbox code:
.atiAttributes{
height:300px;
}
I had not tried that. I just noticed the CSS of the sample and am now using:
.esriAttributeInspector {
height: 400px;
}