[Libreoffice-commits] online.git: loleaflet/src

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Tue Nov 5 20:47:53 UTC 2019


 loleaflet/src/control/Control.Header.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 80f9017acd41753fda7f1e471ce972ea45166f5d
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Tue Nov 5 20:47:07 2019 +0000
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Tue Nov 5 20:47:07 2019 +0000

    calc: repair context menus.
    
    Change-Id: I8efc4bf9d1dee745ddd31167cae3342ff9122d2e

diff --git a/loleaflet/src/control/Control.Header.js b/loleaflet/src/control/Control.Header.js
index 1b7787ef3..b29a4817c 100644
--- a/loleaflet/src/control/Control.Header.js
+++ b/loleaflet/src/control/Control.Header.js
@@ -353,7 +353,6 @@ L.Control.Header = L.Control.extend({
 		if (this._mouseOverEntry) {
 			var mouseOverIsCurrent = (this._mouseOverEntry.index == this._current);
 			this.drawHeaderEntry(this._mouseOverEntry, /*isOver: */ false, null, mouseOverIsCurrent);
-			this._lastMouseOverIndex = this._mouseOverEntry.index + this._startHeaderIndex; // used by context menu
 			this._mouseOverEntry = null;
 		}
 		this._hitResizeArea = false;
@@ -390,6 +389,7 @@ L.Control.Header = L.Control.extend({
 			this.drawHeaderEntry(this._mouseOverEntry, false, null, mouseOverIsCurrent);
 			this.drawHeaderEntry(entry, true, null, entry.index == this._current);
 			this._mouseOverEntry = entry;
+			this._lastMouseOverIndex = this._mouseOverEntry.index; // used by context menu
 		}
 
 		if (isMouseOverResizeArea !== this._hitResizeArea) {


More information about the Libreoffice-commits mailing list