I filed an <a href="http://code.google.com/p/gmaps-api-issues/issues/
detail?id=1802">issue</a>, it's already confirmed.
Calling openInfoWindowHtml() will not help, since I need to move the
info window every 200ms, and reopening the window creates too much
flicker.
As a workaround, I use the following piece of code now (adapted from
an example I saw somewhere in the GMaps API group). Note that I
subtract 2 from the width.
map.getInfoWindow().Reposition = function(p) {
var h = parseInt(this.getContentContainers()[0].style.height);
var w = parseInt(this.getContentContainers()[0].style.width) - 2;
this.reset(p,
this.getTabs(),
new GSize(w,h),
this.getPixelOffset(),
this.getSelectedTab()
);
}
On Oct 14, 11:10 am, Mike Williams <[email protected]> wrote:
> Wasn't it Esa who wrote:
>
>
>
> >On Oct 13, 5:36 pm, Rumith <[email protected]> wrote:
> >> No, unfortunately that doesn't solve the problem.
>
> >Then I suggest you file an issue.
> >http://code.google.com/p/gmaps-api-issues/
>
> >I think GInfoWindow.reset() is not used continuously on many pages.
> >Maybe the issue been there all the time.
>
> >You can set a GSize() as the third parameter so far to make your page
> >work.
>
> It's usually just as easy to call .openInfoWindowHtml() again with the
> new location. I don't think that using .reset() gains you much speed,
> because it goes through most of the openInfoWindow code: it possibly
> skips the size calculation, but has the additional overhead of
> retrieving some of the details from the existing infowindow.
>
> --
> Mike Williamshttp://econym.org.uk/gmap
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---