After marking this down as a solved problem, I was perusing my map and
realized that this fix does not work if the content div of the
infoWindow is larger than ~70% of the map_canvas. When this is the
case I actually did need the Y-scroll bars. Here was my final fix in
prototype (1.6.1):
//My infoWindow's id = infoWindow and my map object is is named
map
//Fix the scrollbar issue
google.maps.event.addListener(infowindow, 'domready', function() {
$('infoWindow').parentNode.setStyle({
overflow: '',
width: $('infoWindow').parentNode.getWidth() //absolutize
the parent's width
});
$('infoWindow').parentNode.parentNode.setStyle({
overflow:
'', //remove the
auto setting; had an issue with this
overflowX: 'hidden',
overflowY: 'auto',
});
$('infoWindow').setStyle({
width: ($('infoWindow').parentNode.parentNode.getWidth() -
20) //leave 20px for the scrollbar
});
});
Hopefully this helps someone.
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.