rem: this.setCenter(bounds.getCenterLonLat(), this.getZoomForExtent(bounds)); 
add: var center = bounds.getCenterLonLat(); if (this.baseLayer.wrapDateLine) { var maxExtent = this.getMaxExtent();        bounds = bounds.clone(); while (bounds.right < bounds.left) { bounds.right += maxExtent.getWidth(); }        center = bounds.getCenterLonLat().wrapDateLine(maxExtent); } this.setCenter(center, this.getZoomForExtent(bounds)); 
context:     zoomToExtent: function(bounds) {        this.setCenter(bounds.getCenterLonLat(),                        this.getZoomForExtent(bounds));    },
meta: 1027	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1027/f56f13652354311efa54b6f984e97657d6d657fe/Map.js/buggy/lib/OpenLayers/Map.js