summaryrefslogtreecommitdiffstats
path: root/loleaflet/src/layer/tile/CalcTileLayer.js
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2020-08-26 04:06:24 +0530
committerAndras Timar <andras.timar@collabora.com>2020-08-28 12:05:24 +0200
commitbafef9a83cb9d7113dfdb854ade7f064d5634aa5 (patch)
tree55c6e324d6cbd8a905defe50fb544b17c373b1f4 /loleaflet/src/layer/tile/CalcTileLayer.js
parentloleaflet: Hyperlink textbox focus & content. (diff)
downloadonline-bafef9a83cb9d7113dfdb854ade7f064d5634aa5.tar.gz
online-bafef9a83cb9d7113dfdb854ade7f064d5634aa5.zip
leaflet: fixed show/hide comment in context menu
Change-Id: Ia18c92832c0dd0de5a09b6e434b4afe4ca9afb26 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101458 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'loleaflet/src/layer/tile/CalcTileLayer.js')
-rw-r--r--loleaflet/src/layer/tile/CalcTileLayer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js
index 8960ddaf5c..11d0a47098 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -109,7 +109,7 @@ L.CalcTileLayer = L.TileLayer.extend({
var annotations = this._annotations[this._selectedPart];
for (var key in annotations) {
var annotation = annotations[key]._annotation;
- if (this._cellCursor.contains(annotation._data.cellPos)) {
+ if (this._cellCursor.intersects(annotation._data.cellPos)) {
this._map.addLayer(annotation);
annotation.show();
}