Ok, I think that I found a solution (workaround):
http://jsfiddle.net/compojoom/4NUnM/21/

So, obviously the map calculates the height of the text wrong. 
I thought that I will calculate the height myself and give it to the 
infowindow. SO, once I have my text node I insert it in the dom (make sure 
to inject the text in the map container (if you inject it in the body you 
will also get wrong height px ...) Once you inject the text, get the 
clientHeight 
of that text and set it as the height of your element. Then set the 
element's height and give it to the infowindow. 

Now everything should be fine.

Daniel

P.S. When we insert the text in the dom we should set the visibility to 
hidden - otherwise the user will see  this text on the page...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/6AhR8Em7YzgJ.
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.

Reply via email to