Reposition the zoom slider after recreating the SimplePanZoom control
authorTom Hughes <tom@compton.nu>
Wed, 15 Aug 2012 18:04:40 +0000 (19:04 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 15 Aug 2012 18:04:40 +0000 (19:04 +0100)
app/assets/openlayers/SimplePanZoom.js

index a1a389d90d73177f3c42511ad8f34c3d293be04f..83f6b9dd235d0457ef0cfb28b94a05cafc6d50f1 100644 (file)
@@ -135,6 +135,7 @@ OpenLayers.Control.SimplePanZoom = OpenLayers.Class(OpenLayers.Control.PanZoom,
             this._removeZoomBar();
         }  
         this.draw();
             this._removeZoomBar();
         }  
         this.draw();
+        this.moveZoomBar();
     },
     
     /**
     },
     
     /**