OpenLayers OpenLayers

Ticket #726: Panel.js.4.diff

File Panel.js.4.diff, 0.7 kB (added by ahocevar, 1 year ago)

This is finally the correct patch. After applying it, the above test succeeds. Oliviers bugfix (Panel.js.2.diff and Panel.js.3.diff) was incorrect, too.

  • /mnt/d/eclipse/workspace/openlayers/lib/OpenLayers/Control/Panel.js

    old new  
    116116            if (this.controls[i] == control) { 
    117117                control.activate(); 
    118118            } else { 
    119                 this.controls[i].deactivate(); 
     119                if (this.controls[i].type != OpenLayers.Control.TYPE_TOGGLE) { 
     120                    this.controls[i].deactivate(); 
     121                } 
    120122            } 
    121123        } 
    122124        this.redraw();