[Libreoffice-commits] online.git: loleaflet/src
Miklos Vajna
vmiklos at collabora.co.uk
Thu Sep 22 14:59:12 UTC 2016
loleaflet/src/layer/tile/TileLayer.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 9aeedd5268fbfb3c0be159d7eb09db3a4ca82505
Author: Miklos Vajna <vmiklos at 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 {
More information about the Libreoffice-commits
mailing list