[Google Maps API v3] no scrollbars in infowindow in android browser

511 views
Skip to first unread message

Rolf Dohrmann

unread,
Apr 23, 2010, 3:11:07 AM4/23/10
to Google Maps JavaScript API v3, rolfdo...@googlemail.com
Hello,

yesterday I saw my map on an iPhone. The content of the infowindow was
too long and
was cut off. No scrollbar was shown. I tried to fix that. I put the
whole content in
div-tags with max-height and overflow:auto (overflow:scroll).

On my workstation firefox and chrome show scrollbars. On my mobile
phone, android
1.5, htc hero, shows no scrollbars. So is this a bug or can I fix
that? Any ideas? Here
is a link:

http://www.speibl.com/kkk/sensorx/

Thanks, Rolf

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

Esa

unread,
Apr 24, 2010, 7:52:43 AM4/24/10
to Google Maps JavaScript API v3
API controls the info window size depending on map container size. You
have relative map size, and scrollbars appear if you see your page in
a small browser window.

That behavior is built in API. The info window <div> already has
{overflow:auto}. You don't have to set that in your content <div>.

Actually I would not recommend setting {overflow:auto} in the content.
There is a small risk of double scrollbars with some browsers.

Esa

unread,
Apr 24, 2010, 8:20:30 AM4/24/10
to Google Maps JavaScript API v3
Sorry about first replying without trying.

Confirmed, Nexus One does not show the scrollbars. It behaves like
{overflow:hidden}. If it is not in your CSS, it may be a bug either in
API or in Android browser. Please report the issue to get better
answers.

[New issue] link here
http://code.google.com/p/gmaps-api-issues/issues/list?q=apitype:Javascript3

Rolf Dohrmann

unread,
Apr 25, 2010, 6:40:55 AM4/25/10
to Google Maps JavaScript API v3
thanks esa,

I wrote a bug report.

On 24 Apr., 14:20, Esa <esa.ilm...@gmail.com> wrote:
> Sorry about first replying without trying.
>
> Confirmed, Nexus One does not show the scrollbars. It behaves like
> {overflow:hidden}. If it is not in your CSS, it may be a bug either in
> API or in Android browser. Please report the issue to get better
> answers.
>
> [New issue] link herehttp://code.google.com/p/gmaps-api-issues/issues/list?q=apitype:Javas...

Rolf Dohrmann

unread,
Apr 28, 2010, 2:10:39 AM4/28/10
to Google Maps JavaScript API v3
The answer to the question is:

it's not a bug. iPhone and Android browsers do not support scrollbars
in infowindows. more infos can be found here:

http://code.google.com/p/android/issues/detail?id=2118

Esa

unread,
Apr 28, 2010, 4:18:04 AM4/28/10
to Google Maps JavaScript API v3


On Apr 28, 9:10 am, Rolf Dohrmann <rolf.dohrm...@web.de> wrote:

> iPhone and Android browsers do not support scrollbars

That is a really important piece of information. Anyone making web
pages should be informed that {overflow:auto} cannot be used.

Thank you.
Reply all
Reply to author
Forward
0 new messages