OpenLayers OpenLayers

Changeset 2189

Show
Ignore:
Timestamp:
01/31/07 06:47:59 (2 years ago)
Author:
crschmidt
Message:

Double clicking overview map expand/contract button zooms. #478. Patch
from tschaub. (Thx tschaub!)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Control/OverviewMap.js

    r2166 r2189  
    163163                          'click',  
    164164                          this.maximizeControl.bindAsEventListener(this)); 
     165            OpenLayers.Event.observe(this.maximizeDiv, 
     166                          'dblclick', 
     167                          function(e) { 
     168                              OpenLayers.Event.stop(e); 
     169                          }); 
    165170            this.div.appendChild(this.maximizeDiv); 
    166171     
     
    178183                          'click',  
    179184                          this.minimizeControl.bindAsEventListener(this)); 
    180      
     185            OpenLayers.Event.observe(this.minimizeDiv, 
     186                          'dblclick', 
     187                          function(e) { 
     188                              OpenLayers.Event.stop(e); 
     189                          }); 
    181190            this.div.appendChild(this.minimizeDiv); 
    182191