OpenLayers OpenLayers

Changeset 6691

Show
Ignore:
Timestamp:
03/28/08 21:55:47 (10 months ago)
Author:
euzuro
Message:

add more comments

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/euzuro/pop/lib/OpenLayers/Popup/Anchored.js

    r6688 r6691  
    7878     * Method: moveTo 
    7979     * Since the popup is moving to a new px, it might need also to be moved 
    80      *     relative to where the marker is. 
     80     *     relative to where the marker is. We first calculate the new  
     81     *     relativePosition, and then we calculate the new px where we will  
     82     *     put the popup, based on the new relative position.  
     83     *  
     84     *     If the relativePosition has changed, we must also call  
     85     *     updateRelativePosition() to make any visual changes to the popup  
     86     *     which are associated with putting it in a new relativePosition. 
    8187     *  
    8288     * Parameters: 
     
    9298        OpenLayers.Popup.prototype.moveTo.apply(this, newArguments); 
    9399         
     100        //if this move has caused the popup to change its relative position,  
     101        // we need to make the appropriate cosmetic changes. 
    94102        if (this.relativePosition != oldRelativePosition) { 
    95103            this.updateRelativePosition();