Select to view content in your preferred language

Unable to change height with map.infoWindow.resize() and Attribute Inspector

1243
2
Jump to solution
09-22-2014 12:54 PM
by Anonymous User
Not applicable

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.

0 Kudos
1 Solution

Accepted Solutions
JonathanUihlein
Esri Regular Contributor

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;

}

View solution in original post

0 Kudos
2 Replies
JonathanUihlein
Esri Regular Contributor

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;

}

0 Kudos
by Anonymous User
Not applicable

I had not tried that. I just noticed the CSS of the sample and am now using:

.esriAttributeInspector {

     height: 400px;

}

0 Kudos