>Try giving your content some sizes.

My content is dynamic - the information is read from the database and
that is why I never know how high it should be.

In my case the problem is that after the infowindow is build I try to
change it's content. So what I want to try is to somehow tell the
infowindow that the content has changed and then tell it to
recalculate everything? Is this possible?


On May 17, 8:44 pm, Rossko <ros...@culzean.clara.co.uk> wrote:
> > As far as I can see each infowindow has a specific height and width,
> > which is being calculated from the API on the fly.
>
> That's right.  In order to get that calculation correct, the API needs
> to know the size of all the elements that make it up.  Try giving your
> content some sizes.  Things that typically go wrong are including
> <img> tags with no size (not your problem though) and styling
> infowindow content dynamically (the styling doesn't get applied until
> after the infowindow is built)

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to