views:

12

answers:

0

I'm using http://1.latest.truxmap.appspot.com as my sandbox for trying to figure this out. I want to have the background color of the content in my info window set dynamically. This works fine, but if I place the div inside the infowindow without changing the css, it displays too low within the infowindow. However, if I use css to bring the box up about 15 pixels the extra whitespace that was previously at the top, is now at the bottom. So I figure what I need to do is get rid of that whitespace by reducing the height of the infowindow. The problem is that I cant figure out how this can be done because firefox is the only browser that supports the script tag inside an infowindow.

I set the height of the content in the info window to 270, but I can see that the height of my infowindow is about 290 using the line Window.alert(new Integer(DOM.getElementById("tabTitle").getParentElement().getParentElement().getParentElement().getClientHeight()).toString()); However, I am unable to set the client height. Is there a function there a function I can use to change the height of the infowindow?