Changeset 4250
- Timestamp:
- 09/12/07 16:14:14 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Popup/Anchored.js (modified) (2 diffs)
- trunk/openlayers/lib/OpenLayers/Popup/AnchoredBubble.js (modified) (2 diffs)
- trunk/openlayers/tests/Popup/test_Anchored.html (added)
- trunk/openlayers/tests/list-tests.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Popup/Anchored.js
r4247 r4250 92 92 /** 93 93 * Method: moveTo 94 * Since the popup is moving to a new px, it might need also to be moved 95 * relative to where the marker is. 94 96 * 95 97 * Parameters: … … 97 99 */ 98 100 moveTo: function(px) { 101 this.relativePosition = this.calculateRelativePosition(px); 102 99 103 var newPx = this.calculateNewPx(px); 100 104 trunk/openlayers/lib/OpenLayers/Popup/AnchoredBubble.js
r4248 r4250 53 53 this.setContentHTML(); 54 54 55 this.setRicoCorners(!this.rounded);56 this.rounded = true;57 58 55 //set the popup color and opacity 59 56 this.setBackgroundColor(); … … 61 58 62 59 return this.div; 60 }, 61 62 /** 63 * Method: moveTo 64 * The popup may have been moved to a new relative location, in which case 65 * we will want to re-do the rico corners. 66 * 67 * Parameters: 68 * px - {<OpenLayers.Pixel>} 69 */ 70 moveTo: function(px) { 71 OpenLayers.Popup.Anchored.prototype.moveTo.apply(this, arguments); 72 this.setRicoCorners(!this.rounded); 73 this.rounded = true; 63 74 }, 64 75 trunk/openlayers/tests/list-tests.html
r4231 r4250 32 32 <li>Marker/test_Box.html</li> 33 33 <li>test_Popup.html</li> 34 <li>Popup/test_Anchored.html</li> 34 35 <li>test_Feature.html</li> 35 36 <li>Feature/test_Vector.html</li>
