I'm starting to be a little bit confused about all that.
I'm looking at this:
http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=coffee&aq=&sll=37.0625,-95.677068&sspn=33.29802,121.552734&ie=UTF8&hq=coffee&hnear=&ll=40.313043,-95.712891&spn=31.906373,121.552734&z=4&iwloc=A

At the bottom of this infoWindow we have few buttons. If we click on
search nearby - a form appears, but no scroll bars are to be seen in
the infowindow :)))

What should my approach be to achieve the same?

Right now I'm injecting my navigation at the bottom of the infowindow,
because it is dynamically created and is a dom node. If I try to use
setContent to add it then in the infowindow I see [HtmlElmen ...].
(most probably because the already existing content for the infowindow
is just a string???)

Something more - in my case when you click on get Directions -> the
form shows, but it also creates a bigger scrollbar - with the google
example - the form just magically appears and the infoWindow just
becomes bigger.




On May 17, 11:41 pm, Rossko <ros...@culzean.clara.co.uk> wrote:
> > My content is dynamic - the information is read from the database and
> > that is why I never know how high it should be.
>
> If you don't know, neither can the API
>
> > In my case the problem is that after the infowindow is build I try to
> > change it's content.
>
> Yes, I think your infoWindowToolbarActions is at the root of the
> issue, injecting HTML into an existing infoWindow.  The API doesn't
> know about that.
> Use the infowindow's setContent() method so it can recalculate

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