InfoWindow height incorrect when using tabs

immoguy

New Member
I'm using tabber.js to add tabs to my InfoWindows, and I use the following code to ensure that the tabs are rendered after the InfoWindow's DOM is ready:\[code\]infowindow.id = marker.markerid;infowindow.open(map, marker);google.maps.event.addListener(infowindow, 'domready', function () { tabberAutomatic({div: document.getElementById(marker.markerid)});});\[/code\]With the Google Maps API, the height of the InfoWindow is automatically calculated from it's content when the InfoWindow opens, not when the DOM is ready. The result is that the InfoWindow is roughly twice the size that it should be, because the height is basically the sum of the heights of all the content in each tab. When the tabs are rendered, I'm left with lots of whitespace in the InfoWindow.So what I need to do is force the InfoWindow to recalculate it's height after the tabs are rendered. Is this possible?
 
Back
Top