I am using GMap API version 2.  I have created a  GInfoWindowTab which
pops up on a marker click event. I have two tabs inside it .. each of
them shows HTML content (from database).

Both the contents are HTML tables with fixed size.. but GInfowindow
takes the size (widht and Size) of the MAX of two.

In this case one of the tabs looks horribly small and incomplete as
much of the space is empty.

Is there anyway.. if I can resize the size based on the height , width
of the table (content)
My function goes like this:
 function CreateInfoWindow(currentHtml, forecastHtml) {

        alert('Loading Summary..');

        if ((currentHtml != null && forecastHtml != null) &&
(currentHtml.length > 1 && forecastHtml.length > 1))
            {
            var infoTabs = [ new GInfoWindowTab("Current",
currentHtml), new GInfoWindowTab("Forecast", forecastHtml)];
            markerReference.openInfoWindowTabsHtml(infoTabs,
{ maxWidth: 400 });

             }
             else
        {
            if (currentHtml == null || currentHtml.length < 1) {
                currentHtml = "No Data Obtained From the Server";
            }
            else {

                var infoTabs = [new GInfoWindowTab("Current",
currentHtml)];
                markerReference.openInfoWindowTabsHtml(infoTabs,
{ maxWidth: 400 });
            }
        }
  }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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