[Libreoffice-commits] online.git: loleaflet/src
Marco Cecchetti (via logerrit)
logerrit at kemper.freedesktop.org
Tue May 5 22:03:50 UTC 2020
loleaflet/src/control/Control.LokDialog.js | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit ac0c36f26fa9725e893e92a63d16b9cf02412cd9
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
AuthorDate: Tue May 5 23:12:20 2020 +0200
Commit: Marco Cecchetti <marco.cecchetti at collabora.com>
CommitDate: Wed May 6 00:03:32 2020 +0200
leaflet: calc: handle calc formula bar offset position (mobile case)
Change-Id: I54f39760761f48bda1dee0eec65f723979c2f3dd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93520
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Marco Cecchetti <marco.cecchetti at collabora.com>
diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index 6841c5087..43a8ee7f4 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -1198,6 +1198,8 @@ L.Control.LokDialog = L.Control.extend({
endHandle.isDragged = false;
var point = L.DomEvent.getMousePosition(ev.srcEvent, handles);
+ point.x += that._calcInputBar.left;
+ point.y += that._calcInputBar.top;
that._postWindowMouseEvent('buttondown', id, point.x, point.y, 1, 1, 0);
that._postWindowMouseEvent('buttonup', id, point.x, point.y, 1, 1, 0);
More information about the Libreoffice-commits
mailing list