[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - loleaflet/src

Henry Castro hcastro at collabora.com
Wed Jun 7 17:07:09 UTC 2017


 loleaflet/src/control/Control.ColumnHeader.js |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 07aa0ca3fd8a283f109f6961f0d78ec3c52b9af4
Author: Henry Castro <hcastro at collabora.com>
Date:   Tue Jun 6 17:50:39 2017 -0400

    loleaflet: prevent default context menu of the corner column header
    
    Change-Id: I27d78e0ef9946776e1311da12ac0116a16a861f7
    Reviewed-on: https://gerrit.libreoffice.org/38472
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/loleaflet/src/control/Control.ColumnHeader.js b/loleaflet/src/control/Control.ColumnHeader.js
index b79678fc..c63a0c83 100644
--- a/loleaflet/src/control/Control.ColumnHeader.js
+++ b/loleaflet/src/control/Control.ColumnHeader.js
@@ -23,6 +23,7 @@ L.Control.ColumnHeader = L.Control.Header.extend({
 		this._map.on('updatecurrentheader', this._onUpdateCurrentColumn, this);
 		var rowColumnFrame = L.DomUtil.get('spreadsheet-row-column-frame');
 		var cornerHeader = L.DomUtil.create('div', 'spreadsheet-header-corner', rowColumnFrame);
+		L.DomEvent.on(cornerHeader, 'contextmenu', L.DomEvent.preventDefault);
 		L.DomEvent.addListener(cornerHeader, 'click', this._onCornerHeaderClick, this);
 		var headersContainer = L.DomUtil.create('div', 'spreadsheet-header-columns-container', rowColumnFrame);
 		this._columns = L.DomUtil.create('div', 'spreadsheet-header-columns', headersContainer);


More information about the Libreoffice-commits mailing list