On Nov 2, 9:39 pm, Ivan D <[email protected]> wrote:
> I've assigned a maxWidth to my infowindows of 270.
>
> In Firefox, this works for every infowindow except one -'Ballona
> Wetlands freshwater marsh' - whose infowindow is 356px.
>
> The maxWidth property works for about 2/3 the markers in IE8. The rest
> have various sizes depending on content.
>
> Can anyone please explain to me why or how I need to alter my
> approach.

I get markers in Firefox. I think the issue is that browsers can
arbitrarily resize divs depending on the content. The one which you
have found in Firefox contains a link which is the width of the
infoWindow -- I assume that the browser has ignored the maxWidth
setting in order to fit the link in. IE may break links differently
when it's constructing the infoWindow content, so the content divs get
different widths. And IE is notorious for doing this. Firefox is a lot
better.

My recommended way around the issue would be to use descriptive text
for the destination of the link (between <a>...</a>) instead of
repeating the URL. Text usually consists of short words which the
browser will be able to format in the width you specify. If you
wanted, you could use the "title" attribute for <a> to show the URL as
a tooltip.

-- 
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 [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-api?hl=en.

Reply via email to