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.