map.infoWindow.setTitle(null);
Take the simple infoWindow example and change the infoWindow title declaration to read:map.infoWindow.setTitle(null);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?Thanks,Steve
map.infoWindow.hideTitleBar();
You can hide infoWindow title Bar by using map.infoWindow.hideTitleBar();
Nice find - thanks.The problem is that this also hides the X to close the infoWindow. Is there a way to hide the title bar, but keep the X?(I've already implemented the ESC key to close the infoWindow as discussed in a previous post, but I think there still should be a way to close it using the mouse).
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.