Hi there,

If you do not define a width/height to the DIV containing your HTML,
then the infoWindow will indeed "grow" to compensate

Look at this exmaple:
http://code.google.com/apis/maps/documentation/v3/examples/infowindow-simple.html

If you copy that source, re-create it locally and add more HTML to the
infoWindow, it expands, as <div id="content"> in the string, doesn't
have an associated width/height.

In terms of avoiding scrollbars, you could do this using the css
property "overflow:hidden", on the DIV holding your content, however
this is not ideal as it will cut off your content if it were longer
then your pre-defined width/height.

If you have any live examples, please share and I can have a further
look

Cheers
Pete


On Feb 8, 10:50 pm, babbos <[email protected]> wrote:
> Hello,
>
> I am trying to make an application using google maps api v3.
>
> I have noticed that when i open an infowindow, the infowindow pans to
> it's maximum possible dimension it can contain given it's contents.
>
> If the contents of the infowindow are larger than the available in-map
> area for the infowindow, then the infowindow will have scroll bars,
> vertical and or horizontal.
>
> From what i have understood so far, there is no way to control this
> behaviour.
>
> The behaviour that would be ideal is how the maps.google.com 's
> infowindows open, disregarding available height they will take up as
> much size as their content needs, no scroll bars.
>
> How can i achieve this?
>
> Thankyou

-- 
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 [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