From 128b615a0859a08f2e788f31fae18060df5c3ce6 Mon Sep 17 00:00:00 2001 From: danzel Date: Thu, 8 Nov 2012 15:49:39 +1300 Subject: [PATCH] Force a reflow when stopping a PanAnimation to start a ZoomAnimation so that the svg animation works correctly. Fixes #1125 --- src/map/anim/Map.PanAnimation.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/map/anim/Map.PanAnimation.js b/src/map/anim/Map.PanAnimation.js index 2c911fde..2f564791 100644 --- a/src/map/anim/Map.PanAnimation.js +++ b/src/map/anim/Map.PanAnimation.js @@ -10,6 +10,7 @@ L.Map.include({ if (this._panAnim) { this._panAnim.stop(); + L.Util.falseFn(this._container.offsetWidth); // force reflow } var done = (zoomChanged ?