infoWindow with null title behaves differently in IE 7 than other browsers

Discussion created by stevel on Jul 5, 2011
Latest reply on Jul 7, 2011 by hzhu
Take the simple infoWindow example and change the infoWindow title declaration to read:


Run this in FireFox or Chrome, click on the map and note that the infoWindow's title section is minimised (this is my desired outcome).

In Internet Explorer 8 (in Document Mode: IE7 Standards), the title is blank but is not minimised.

This is causing a problem in my site as I am inserting an HTML object into the infoWindow's contents, and it's showing scrollbars in IE (since the empty but maximised Title section is taking up space I need for the HTML object). If I add padding to accommodate this, it looks ugly in every browser except IE7.

Is this a bug? Is there a way to force IE7 to minimise the Title section when it's empty?