views:

29

answers:

1

By default, a Google Map infowindow has really nasty style, such that the inner content overlaps the close button when a scrollbar is present:

alt text

Google, by their infinite wisdom, don't do anything as nice as using classes on their elements, so that makes styling the info window very difficult. Does anyone know how I can fix this overlap problem?

A: 

Insert your own div with id and class into the window and style it; if you want even more control, get its parent (through document.getElementById("yourdiv").parent) and manipulate its CSS through DOM (e.g. reset the overflow property).

Piskvor
I've tried that but it doesn't help. Since that div gets inserted into a google element that has 'overflow: auto', the scrollbar remains in the same position, with the close button overlapping it.
Bobby Jack