[Libreoffice-commits] online.git: Branch 'libreoffice-6-0' - loleaflet/src

Marco Cecchetti marco.cecchetti at collabora.com
Thu Dec 21 10:52:29 UTC 2017


 loleaflet/src/control/Control.Header.js |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit d18e4e1c4ca3d952d79d425cd5ee662e33e38cdd
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
Date:   Sun Dec 17 19:03:51 2017 +0100

    calc: fixing auto optimal size on double-click
    
    Change-Id: I6341c617037cd876667681d4495f77e75cad8388
    Reviewed-on: https://gerrit.libreoffice.org/46718
    Reviewed-by: Marco Cecchetti <mrcekets at gmail.com>
    Tested-by: Marco Cecchetti <mrcekets at gmail.com>
    Reviewed-on: https://gerrit.libreoffice.org/46897
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/loleaflet/src/control/Control.Header.js b/loleaflet/src/control/Control.Header.js
index d3b9c32d..7af14c3b 100644
--- a/loleaflet/src/control/Control.Header.js
+++ b/loleaflet/src/control/Control.Header.js
@@ -293,6 +293,10 @@ L.Control.Header = L.Control.extend({
 		this.onDragMove(this._item, this._start, this._offset, e);
 	},
 
+	_resetClickCount: function () {
+		this._clicks = 0;
+	},
+
 	_onMouseUp: function (e) {
 		L.DomEvent.off(document, 'mousemove', this._onMouseMove, this);
 		L.DomEvent.off(document, 'mouseup', this._onMouseUp, this);
@@ -308,7 +312,7 @@ L.Control.Header = L.Control.extend({
 			this._clicks = 0;
 		} else {
 			this.onDragClick(this._item, ++this._clicks, e);
-			setTimeout(L.bind(this.initialize, this), 400);
+			setTimeout(L.bind(this._resetClickCount, this), 400);
 		}
 
 		this._item = this._start = this._offset = null;


More information about the Libreoffice-commits mailing list