Please check your link
--
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-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
--
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-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
Hi BradI have tried using h2 in fact we tried them all though to h7 yesterday. All with no luck.The problem is the overflow:auto on the containing div. The reference says you should be able to put a size on your content div so it really should work straight out of the box.I tried not putting a width on my content and using maxWidth in the infowindow options. That got rid of the horizontal scroll bar but not the vertical one, it also made by infowindows look a mess.Maybe it should be reported as a bug?
> Hi Brad & Franky et al
>
> Over a glass this evening I thought it would be a better approach to
> use a bit of JS and work out from my own content div to fix the
> overflow:auto issue rather than in via about 6 divs with CSS.
>
> I gave my content div an id of 'xxxx' thinking it might attract the
> attention of the Australian development team!
> Then document.getElementById('xxxx').parentNode.style.overflow='';
> added immediately after the infowindow.open removes the overflow
> style from the parent div.
>
> Problem, at least for now, solved. Modified code now at
> http://www.lawless.info/gmaps/bubble_test.html
>
> Can anyone think why we should not take this approach?
>
> Regards
>
> Pete
Hi Pete,
I tried it here and still got scrollbars ... maybe I made an error
coding it up, but you should also try with more than 2 lines in your
infowindow. I'll test again later.
Franky
try putting more than 2 lines in your infowindow and see what
happens ...
Franky
--
> Hi Brad & Franky et al
>
> Over a glass this evening I thought it would be a better approach to
> use a bit of JS and work out from my own content div to fix the
> overflow:auto issue rather than in via about 6 divs with CSS.
>
> I gave my content div an id of 'xxxx' thinking it might attract the
> attention of the Australian development team!
> Then document.getElementById('xxxx').parentNode.style.overflow='';
> added immediately after the infowindow.open removes the overflow
> style from the parent div.
>
> Problem, at least for now, solved. Modified code now at
> http://www.lawless.info/gmaps/bubble_test.html
>
> Can anyone think why we should not take this approach?
>
> Regards
>
> Pete
Well, this might work if your page is created statically, but I'm using
a dynamically created page and need to call the google map API
asynchronously. When I then do this:
var s_map = new google.maps.Map(div_id, myOptions);
var s_infowindow = new google.maps.InfoWindow({ content: "<div
id=\"locationballoon\"
class=\"location-balloon\">TEST</div>" });
....
s_infowindow.open(s_map,s_marker);
document.getElementById("locationballoon").parentNode.style.overflow='';
I then get a javascript error:
Error: document.getElementById("dbemlocationballoon") is null
While in the generated page, the id is indeed there, it seems the
javascript is called earlier and thus can't see that specific new id.
So I will now try the CSS method.
Franky
--
I forgot to mention that my content div's id is also infowindow, as
you probably figured out..