Ok, I guess that I'll leave it like this... http://labs.compojoom.com/index.php/hotspots
Now when you click on infowindow -> direction -> you don't get anymore a scroll bar. I'm firing the content_changed event and the api is rebuilding the window. Unfortunately there the balloon flickers... The only browser that works fine is IE9 - yeaaa!!! It seems that maps.google.com does something else, but I can't figure it out. On May 19, 3:18 pm, THE_AI <[email protected]> wrote: > Ok, now I'm one step further:http://labs.compojoom.com/index.php/hotspots > > If you click on a marker it will open the infowindow without any > scroll bars. > What did I do? > > The content for the marker was an html string. I have encapsulated > this string into an div dom element. > Then I've injected the navigation into this div and gave this to the > infowindow function... Now it calculates the height properly. > > But when I click on the button "get directions", the form opens, but > the infowindow doesn't become bigger... I tried the following trick: > I set display: block and then call the open() function on the > infowindow and this was resizing it, but there was an annoying > flickering effect... > > Still trying to figure out how google do the trick > here:http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=coffee&aq... > > On May 18, 1:35 pm, THE_AI <[email protected]> wrote: > > > > > > > > > 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... > > > 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 <[email protected]> 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 [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.
