Sunday, January 29, 2012

[Google Maps API v2] Re: Info Window Content Overflow (with simple example)

Hi again.

If it works it works!

I've found that there's no 100% guranteed to work solution.

But using standard CSS styles such as overflow: auto and max-height
should ensure the fix works in all modern browsers.

Martin.


On Jan 29, 10:57 pm, "dugald.mor...@gmail.com"
<dugald.mor...@gmail.com> wrote:
> Thanks to Martin's suggestions, I may have a fix.
>
> I have updated the example code (athttp://www.councilmapserver.com/MapTestCase/MapTestCase.html) with some
> different combinations of:
>
> * applying styles to the div containing the text
> * method by which the content is constructed (using the DOM vs straight
> HTML)
>
> The method (DOM vs direct HTML injection) by which the content of the info
> window doesn't seem to have any influence.
>
> Adding s style overflow:auto on its own did not fix the overflow problem,
> by adding both overflow:auto and max-height:200px did fix the problem.
>
> Is this the best fix?

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate