diff --git a/lib/OpenLayers/Control/LayerSwitcher.js b/lib/OpenLayers/Control/LayerSwitcher.js index e3ac371240..1ce4dfcd7e 100644 --- a/lib/OpenLayers/Control/LayerSwitcher.js +++ b/lib/OpenLayers/Control/LayerSwitcher.js @@ -75,8 +75,8 @@ OpenLayers.Control.LayerSwitcher.prototype = div.ondblclick = this.doubleClick.bindAsEventListener(div); div.onmousedown = this.singleClick.bindAsEventListener(div); + this.div.appendChild(div); } - this.div.appendChild(div); pixel = pixel.add(0, 35); } return this.div;