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

New commits:
commit 31d2fc7cb079fc28674d8de8b8770c1e0e923047
Author: Marco Cecchetti <marco.cecche...@collabora.com>
Date:   Fri Feb 2 12:36:24 2018 +0100

    loleaflet: calc: double click on resize area freezes header handling
    
    Change-Id: I05d758ed0cb6cafa5ab14418b82f23b607e4ea95
    Reviewed-on: https://gerrit.libreoffice.org/49239
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>
    Tested-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/loleaflet/src/control/Control.Header.js 
b/loleaflet/src/control/Control.Header.js
index ad8edec3..22e176da 100644
--- a/loleaflet/src/control/Control.Header.js
+++ b/loleaflet/src/control/Control.Header.js
@@ -396,6 +396,10 @@ L.Control.Header = L.Control.extend({
                if (!this._hitResizeArea)
                        return;
 
+               var rect = this.getHeaderEntryBoundingClientRect();
+               if (!rect)
+                       return;
+
                L.DomUtil.disableImageDrag();
                L.DomUtil.disableTextSelection();
 
@@ -408,7 +412,7 @@ L.Control.Header = L.Control.extend({
                L.DomEvent.on(document, 'mousemove', 
this._onMouseMoveForDragging, this);
                L.DomEvent.on(document, 'mouseup', this._onMouseUp, this);
 
-               var rect = this.getHeaderEntryBoundingClientRect();
+
                this._start = new L.Point(rect.left, rect.top);
                this._offset = new L.Point(rect.right - e.clientX, rect.bottom 
- e.clientY);
                this._item = target;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to