Changeset 6650
- Timestamp:
- 03/28/08 00:29:40 (10 months ago)
- Files:
-
- sandbox/euzuro/pop/lib/OpenLayers/Popup.js (modified) (2 diffs)
- sandbox/euzuro/pop/lib/OpenLayers/Popup/Anchored.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/euzuro/pop/lib/OpenLayers/Popup.js
r6635 r6650 281 281 } 282 282 283 this.moveTo(px); 283 284 if (!this.autoSize) { 284 285 this.setSize(this.size); … … 288 289 this.setBorder(); 289 290 this.setContentHTML(); 290 this.moveTo(px);291 291 292 292 if (this.panMapIfOutOfView) { sandbox/euzuro/pop/lib/OpenLayers/Popup/Anchored.js
r6649 r6650 100 100 OpenLayers.Popup.prototype.moveTo.apply(this, newArguments); 101 101 }, 102 103 /**104 * Method: draw105 *106 * Parameters:107 * px - {<OpenLayers.Pixel>}108 *109 * Returns:110 * {DOMElement} Reference to a div that contains the drawn popup.111 */112 draw: function(px) {113 if (px == null) {114 if ((this.lonlat != null) && (this.map != null)) {115 px = this.map.getLayerPxFromLonLat(this.lonlat);116 }117 }118 119 //calculate relative position120 this.relativePosition = this.calculateRelativePosition(px);121 122 return OpenLayers.Popup.prototype.draw.apply(this, [px]);123 },124 125 102 126 103 /**
