Solved! Go to Solution.
dojo.connect(map.infoWindow, "onHide", function () { map.infoWindow.setContent(""); });
Probably is an old question and not interesting for many people, but if everyone has a similar problem, I've found a solution to 'undo' resize method for infoWindow.
Try this (javascript code) at onHide event for infoWindow:
try {
map.infoWindow.setContent(' ');
dojo.style(map.infoWindow._contentPane,'max-height','');
dojo.forEach(map.infoWindow._sizers,function(o){dojo.style(o,'width','');});
} catch(e) {}
Live Long and Prosper