From 991a5a14c72cec89440addc53c31345f8f40ebe2 Mon Sep 17 00:00:00 2001 From: Dennis Francis Date: Thu, 22 Apr 2021 13:43:37 +0530 Subject: [PATCH] fix: header draws with old size after resize + mousemove Fix: clear the cached "entry" with old size after a drag has ended. Signed-off-by: Dennis Francis Change-Id: I73840e380dc808c5805588947d774984def288d0 --- loleaflet/src/control/Control.ColumnHeader.js | 1 + loleaflet/src/control/Control.RowHeader.js | 1 + 2 files changed, 2 insertions(+) diff --git a/loleaflet/src/control/Control.ColumnHeader.js b/loleaflet/src/control/Control.ColumnHeader.js index bf21da75e..f857675cd 100644 --- a/loleaflet/src/control/Control.ColumnHeader.js +++ b/loleaflet/src/control/Control.ColumnHeader.js @@ -242,6 +242,7 @@ L.Control.ColumnHeader = L.Control.Header.extend({ }; this._map.sendUnoCommand('.uno:ColumnWidth', command); + this._mouseOverEntry = null; } }, diff --git a/loleaflet/src/control/Control.RowHeader.js b/loleaflet/src/control/Control.RowHeader.js index 4fa3a35ef..1cb6846d2 100644 --- a/loleaflet/src/control/Control.RowHeader.js +++ b/loleaflet/src/control/Control.RowHeader.js @@ -238,6 +238,7 @@ L.Control.RowHeader = L.Control.Header.extend({ this._map.sendUnoCommand('.uno:RowHeight', command); //this.containerObject.requestReDraw(); + this._mouseOverEntry = null; } },