-1

I have a simple infowindow, and I have followed Google Javascript tutorial, but the infowindow is starting above the map, outside the window.

I thought I made some mistake, but looking at Google example here, I see the same defect (tried with Safari and Chrome): the InfoWindow is positioned outside the map.

What is wrong in that sample page?

Fabio Marzocca
  • 1,573
  • 16
  • 36

1 Answers1

0

I have fixed this by enclosing the infowindow content into a div with max-height:

content ="<div style='max-height: 400px !important;'>"+contentstring+ "<div>";
infoWin.setContent(content);
infoWin.open(map, marker);
Fabio Marzocca
  • 1,573
  • 16
  • 36