Changeset 2915
- Timestamp:
- 03/28/07 18:26:03 (2 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Map.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js
r1721 r2915 168 168 this.zoomStart = evt.xy.clone(); 169 169 this.div.style.cursor = "move"; 170 // reset the div offsets just in case the div moved 171 this.zoomBarDiv.offsets = null; 170 172 OpenLayers.Event.stop(evt); 171 173 }, trunk/openlayers/lib/OpenLayers/Map.js
r2875 r2915 180 180 181 181 this.events = new OpenLayers.Events(this, div, this.EVENT_TYPES, this.fallThrough); 182 183 182 this.updateSize(); 184 183 185 // Because Mozilla does not support the "resize" event for elements other 186 // than "window", we need to put a hack here. 187 // 184 // update the map size and location before the map moves 185 this.events.register("movestart", this, this.updateSize); 186 187 // Because Mozilla does not support the "resize" event for elements other 188 // than "window", we need to put a hack here. 188 189 if (navigator.appName.contains("Microsoft")) { 189 190 // If IE, register the resize on the div … … 634 635 */ 635 636 updateSize: function() { 637 // the div might have moved on the page, also 638 this.events.element.offsets = null; 636 639 var newSize = this.getCurrentSize(); 637 640 var oldSize = this.getSize(); … … 647 650 this.layers[i].onMapResize(); 648 651 } 649 650 // the div might have moved on the page, also651 this.events.element.offsets = null;652 652 653 653 if (this.baseLayer != null) {
