Changeset 6651
- Timestamp:
- 03/28/08 01:38:08 (10 months ago)
- Files:
-
- sandbox/euzuro/pop/lib/OpenLayers/Popup/Framed.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/euzuro/pop/lib/OpenLayers/Popup/Framed.js
r6647 r6651 94 94 //based on our decided relativePostion, set the current padding 95 95 // this keeps us from getting into trouble 96 this.updateRelativePosition( this.relativePosition);96 this.updateRelativePosition(); 97 97 } 98 98 … … 151 151 }, 152 152 153 /** 154 * APIMethod: setSize 155 * 156 * Parameters: 157 * size {OpenLayers.Size} - Desired size of the content of the popup. 158 */ 159 setSize: function(size) { 160 161 OpenLayers.Popup.Anchored.prototype.setSize.apply(this, arguments); 162 163 this.updateFrames(); 153 /** 154 * APIMethod: moveTo 155 * 156 * Parameters: 157 * px - {<OpenLayers.Pixel>} 158 */ 159 moveTo: function(px) { 160 OpenLayers.Popup.Anchored.prototype.moveTo.apply(this, arguments); 161 162 this.updateRelativePosition(); 164 163 }, 165 164 … … 196 195 relativePosition = 197 196 OpenLayers.Popup.Anchored.prototype.calculateRelativePosition.apply(this, arguments); 198 199 //update the frame's padding and offset for the new200 // relative position201 this.updateRelativePosition(relativePosition);202 197 } 203 198 … … 207 202 /** 208 203 * Method: updateRelativePosition 209 * 210 * Parameters: 211 * relativePosition - {String}} 212 */ 213 updateRelativePosition: function(relativePosition) { 214 204 */ 205 updateRelativePosition: function() { 206 215 207 //update the padding 216 this.padding = this.positionBlocks[ relativePosition].padding;208 this.padding = this.positionBlocks[this.relativePosition].padding; 217 209 218 210 //update the position of our close box to new padding … … 227 219 this.padding.top + "px"; 228 220 } 221 222 this.updateFrames(); 229 223 }, 230 224
