loleaflet/src/layer/tile/TileLayer.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 9aeedd5268fbfb3c0be159d7eb09db3a4ca82505
Author: Miklos Vajna <vmik...@collabora.co.uk>
Date:   Thu Sep 22 16:56:03 2016 +0200

    leaflet: make sure showing the graphic view selection doesn't result in 
scrolling
    
    Otherwise if you edit a different part of the document and somebody else
    selects a shape, you get an unexpected, annoying jump.
    
    Change-Id: I161a27c8a69e0873de0ebe3a020e2868cbe0afca

diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index 7cd46b6..e22bc69 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -1265,7 +1265,8 @@ L.TileLayer = L.GridLayer.extend({
                                        fill: false,
                                        color: color
                                });
-                               
viewMarker.bindPopup(this._map.getViewName(viewId), {autoClose: false, 
borderColor: color});
+                               // Disable autoPan, so the graphic view 
selection doesn't make the view jump to the popup.
+                               
viewMarker.bindPopup(this._map.getViewName(viewId), {autoClose: false, autoPan: 
false, borderColor: color});
                                this._graphicViewMarkers[viewId].marker = 
viewMarker;
                        }
                        else {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to