Redraw control.panel when toggle controls are activated. Patch by

sbenthall (yay), r=me, (Closes #895) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7597 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-07-30 00:40:32 +00:00
parent 0b58117c06
commit 8c59d55658
2 changed files with 7 additions and 1 deletions

View File

@@ -137,6 +137,7 @@ OpenLayers.Control.Panel = OpenLayers.Class(OpenLayers.Control, {
if (!this.active) { return false; }
if (control.type == OpenLayers.Control.TYPE_BUTTON) {
control.trigger();
this.redraw();
return;
}
if (control.type == OpenLayers.Control.TYPE_TOGGLE) {
@@ -145,6 +146,7 @@ OpenLayers.Control.Panel = OpenLayers.Class(OpenLayers.Control, {
} else {
control.activate();
}
this.redraw();
return;
}
for (var i = 0; i < this.controls.length; i++) {