OpenLayers OpenLayers

Changeset 6390

Show
Ignore:
Timestamp:
02/27/08 15:28:34 (11 months ago)
Author:
euzuro
Message:

we dont really want to pan the map into view every time a popup is moved. rather we want to do it when the popup is *drawn*. so we move that code into draw(). now even if the popup is open, it doesnt scroll into view on pan/zoom. i think thats better. it should only do the panning when you open it. none other.

Files:

Legend:

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

    r6300 r6390  
    272272        this.setContentHTML(); 
    273273        this.moveTo(px); 
     274         
     275        if (this.panMapIfOutOfView) { 
     276            this.panIntoView(); 
     277        }     
     278 
     279 
    274280 
    275281        return this.div; 
     
    301307            this.div.style.top = px.y + "px"; 
    302308        } 
    303          
    304         if (this.panMapIfOutOfView) { 
    305             this.panIntoView(); 
    306         }     
    307          
    308309    }, 
    309310