I've been playing with adding an InfoWindow to my map.  My code is
really simple and just looks like this:

var container = document.createElement('div');
container.style.width = "500px";
container.style.height = "490px";
container.style.backgroundColor = 'white';
container.innerHTML = data; // data is loaded via an ajax call
infowindow.setContent(container);

What I've found is that the the InfoWindow often ignores my width and
height setting.  I've tried setting the value as above, setting them
statically on the html element (<div style="width:500px;height:
490px;>....</div>) and via the stylesheet.  If I inspect the code
using Firebug the values are actually changed in the html to this:

<div style="width: 500px; height: 321px; background-color: white;">

I'm assuming that the Google API does this, but I'm not sure why.  Is
there a way to get the InfoWindow to use the size I set?

Thanks,
Justin

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

Reply via email to