google maps updates yield infowindow rendering trouble - firefox not wrapping
google maps updated their code and it caused infowindow html rendering problems, especially in firefox, for my app.
to save anyone some time in the future:
i'm not sure why this is hard, but laying out a tabular infowindow is troublesome in both IE and firefox. Though code will work on it's own--not when it's given to the marker.openInfoWindowHtml(html). Differing results will be had depending on how you assign the width: on a containing div element, table element, td element; in or out of stylesheets.
The most common error I had was firefox refusing to wrap text.
so the solution, so it turns out, is to assign the width via stylesheets in a containing div. both browsers get that right. here's an example from mine: http://www.referential-integrity.com/DiscGolfCourseGmap/infoWindow.html
browser compatibility is such a loathsome subject...
to save anyone some time in the future:
i'm not sure why this is hard, but laying out a tabular infowindow is troublesome in both IE and firefox. Though code will work on it's own--not when it's given to the marker.openInfoWindowHtml(html). Differing results will be had depending on how you assign the width: on a containing div element, table element, td element; in or out of stylesheets.
The most common error I had was firefox refusing to wrap text.
so the solution, so it turns out, is to assign the width via stylesheets in a containing div. both browsers get that right. here's an example from mine: http://www.referential-integrity.com/DiscGolfCourseGmap/infoWindow.html
browser compatibility is such a loathsome subject...

0 Comments:
Post a Comment
<< Home