OpenLayers OpenLayers

Ticket #1325: Panel.js.diff2

File Panel.js.diff2, 0.7 kB (added by sbenthall, 7 months ago)

redrawing patch for Panel.js

Line 
1 Index: lib/OpenLayers/Control/Panel.js
2 ===================================================================
3 --- Panel.js    lib/OpenLayers/Control/Panel.js (revision 6014)
4 +++ Panel.js    lib/OpenLayers/Control/Panel.js (revision 6014)
5 @@ -126,6 +126,7 @@
6          if (!this.active) { return false; }
7          if (control.type == OpenLayers.Control.TYPE_BUTTON) {
8              control.trigger();
9 +            this.redraw();
10              return;
11          }
12          if (control.type == OpenLayers.Control.TYPE_TOGGLE) {
13 @@ -134,6 +135,7 @@
14              } else {
15                  control.activate();
16              }
17 +            this.redraw();
18              return;
19          }
20          for (var i = 0; i < this.controls.length; i++) {