sg

Cuma, Ocak 06, 2006

info window problem popup again in FF1.5


I have info winodw problem, that html in info window goes out of it in
FF1.5
I have put // FF 1.5 fix html = '<div style="white-space:nowrap;">'
+ html + '</div>'; already.
The new code added in map is about centerAndZoomOnBounds

GMap.prototype.centerAndZoomOnBounds = function(bounds) {
var span = new GSize((bounds.maxX - bounds.minX)*1.5,
(bounds.maxY - bounds.minY)*1.5);
//var center = new GPoint(bounds.minX + span.width / 2.,
bounds.minY + span.height / 2.);
var center = new GPoint(avgLongitude, avgLatitude);
var newZoom = this.spec.getLowestZoomLevel(center, span,
this.viewSize);

if (this.getZoomLevel() != newZoom) {
this.centerAndZoom(center, newZoom);
} else {
this.recenterOrPanToLatLng(center);
}

}
After adding this code I started getting old FF1.5 bug.
Please help. Thanks

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık