[Libreoffice-commits] online.git: loleaflet/src
Henry Castro
hcastro at collabora.com
Wed Sep 14 23:31:20 UTC 2016
loleaflet/src/layer/tile/TileLayer.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 7cb35bff635df9da6917dac4a8857eeb4c2c1208
Author: Henry Castro <hcastro at collabora.com>
Date: Wed Sep 14 19:30:26 2016 -0400
loleaflet: view name bind to popup
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index e6e2c7c..89320d4 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -1211,10 +1211,11 @@ L.TileLayer = L.GridLayer.extend({
(this._docType === 'text' || this._selectedPart === viewPart)) {
if (!viewMarker) {
viewMarker = L.rectangle(viewBounds, {
- pointerEvents: 'none',
+ pointerEvents: 'auto',
fill: false,
color: L.LOUtil.getViewIdHexColor(viewId)
});
+ viewMarker.bindPopup(this._map.getViewName(viewId), {autoClose: false});
this._graphicViewMarkers[viewId].marker = viewMarker;
}
else {
More information about the Libreoffice-commits
mailing list