loleaflet/src/control/Control.ContextMenu.js | 1 - loleaflet/src/control/Control.JSDialogBuilder.js | 4 ++++ loleaflet/src/layer/tile/CalcTileLayer.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-)
New commits: commit bafef9a83cb9d7113dfdb854ade7f064d5634aa5 Author: Pranam Lashkari <lpra...@collabora.com> AuthorDate: Wed Aug 26 04:06:24 2020 +0530 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Fri Aug 28 12:05:24 2020 +0200 leaflet: fixed show/hide comment in context menu Change-Id: Ia18c92832c0dd0de5a09b6e434b4afe4ca9afb26 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101458 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/loleaflet/src/control/Control.ContextMenu.js b/loleaflet/src/control/Control.ContextMenu.js index db34a5600..3f0a4c035 100644 --- a/loleaflet/src/control/Control.ContextMenu.js +++ b/loleaflet/src/control/Control.ContextMenu.js @@ -78,7 +78,6 @@ L.Control.ContextMenu = L.Control.extend({ 'SpellingAndGrammarDialog', 'FontDialog', 'FontDialogForParagraph', // spreadsheet 'FormatCellDialog', - 'ShowNote', 'HideNote', 'DeleteNote', ] }, diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js index fc3cf6644..a925b0a1f 100644 --- a/loleaflet/src/control/Control.JSDialogBuilder.js +++ b/loleaflet/src/control/Control.JSDialogBuilder.js @@ -2129,6 +2129,10 @@ L.Control.JSDialogBuilder = L.Control.extend({ data.command.startsWith('.uno:InsertPageFooter')) && data.checked && data.checked === true) { return; + } else if (data.command === '.uno:ShowNote') { + builder.map._docLayer.showAnnotationFromCurrentCell(); + } else if (data.command === '.uno:HideNote') { + builder.map._docLayer.hideAnnotationFromCurrentCell(); } builder.map.sendUnoCommand(data.command); } diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js index 8960ddaf5..11d0a4709 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(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits