views:

355

answers:

1

I've been searching the net for a solution.

My problem is that the info window's height is not calculated properly. There are no images in there so it is not an issue with the image loading later and the size is not known when the bubble is created.

Also if I fill it up with about 15 lines more text the size is starting to get alright.

This is what I feed to infoWindowHtml:

<div><h2><a href="">Some title</a></h2><dl><dt>Location:</dt><dd>london</dd><dt>Description</dt><dd><p>Example text </p></dd></dl><p><a href="">Read more...</a></p></div>
A: 

To solve this problem you can set width and height of the main div. If you set only the width, it will work. If you set width, height, and overflow:auto, you'll get also a scrollbar in case of a too long content.

However in Google Maps V3 this issue is solved.

abral