Hi everyone,

this problem drives me mad and I couldn't find a satisfying answer by
googling. I have a lot of markers generated from a database. Every
marker has an onclick-listener, which opens an infowindow (there's
only one instance of this class) and displays some simple HTML
information. This works just fine. But the infowindow seems to
calculate the height of the content incorrect and so there is this
scrollbar I want to get rid of. The bar appears in FF, Chrome and IE9,
so I don't think its a browser issue.

Example: http://portal.sef-energietechnik.de/ref-test

Here is a snippet of marker generating code:

function createMarkers(xml){
    var markerNodes =
xml.documentElement.getElementsByTagName("marker");
    var infowindow = new google.maps.InfoWindow({maxWidth:300});

    for (var i = 0; i < markerNodes.length; i++) {
        [...]   //reading the data from xml

        var marker = new google.maps.Marker({
            position: latlng,
            title: name,
            type: type,
            typeText: typeText,
            infoHtml: html,
            icon: markerImagesPath + markerImages[type]
        });

        marker.setMap(map);

        google.maps.event.addListener(marker, 'click', function() {
            infowindow.close();
            infowindow.setContent(this.infoHtml);
            infowindow.open(map,this);
        });
    }
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to