Hello,

in some browsers (notably Firefox 3 on both Linux and Windows)
changing an open GInfoWindow's position with reset() call not only
moves it to new position, but also makes it wider for some reason. The
code I use to change its position follows:

function update() {
        var dt = new Date();
        $("#ut").text(dt.toUTCString());
        $("#lt").text(dt.toString());
        for (var i in markers) {
                var satInfo = PLib.QuickFind(i);
                var position = new GLatLng(satInfo.latitude, satInfo.longitude);
                markers[i].setLatLng(position);
        }
        /* This is the code that supposedly changes GInfoWindows'
position */
        if (!map.getInfoWindow().isHidden()) {
                map.getInfoWindow().reset(markers[currentSat].getLatLng());
        }
        setTimeout("update()", 200);
}

To observe this effect, please open <a href="http://smdc.sinp.msu.ru/
tracker/">SpaceTrackr</a> in Firefox 3; click one of the markers
flying around (such as Koronas-Foton) and wait a few seconds; it seems
that on every call of update() the info window grows 1px wider. This
effect is not observed in Google Chrome.

Any ideas? Thanks.

--~--~---------~--~----~------------~-------~--~----~
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