loleaflet/src/layer/marker/Cursor.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 05b7357edec6af69b2ef81f62fd38313e7337428
Author:     Dennis Francis <[email protected]>
AuthorDate: Tue Jul 7 22:20:37 2020 +0530
Commit:     Dennis Francis <[email protected]>
CommitDate: Wed Jul 8 17:09:52 2020 +0200

    Make cursor positioning work for split-panes
    
    Change-Id: I603e0309399b7031ad69d6e31f2ebd6c1bfe5fd2
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98360
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Tested-by: Jenkins
    Reviewed-by: Dennis Francis <[email protected]>

diff --git a/loleaflet/src/layer/marker/Cursor.js 
b/loleaflet/src/layer/marker/Cursor.js
index b7a0ba1a9..638e971fd 100644
--- a/loleaflet/src/layer/marker/Cursor.js
+++ b/loleaflet/src/layer/marker/Cursor.js
@@ -62,7 +62,8 @@ L.Cursor = L.Layer.extend({
 
        update: function () {
                if (this._container && this._map) {
-                       var pos = 
this._map.latLngToLayerPoint(this._latlng).round();
+                       var pos = 
this._map.latLngToContainerPoint(this._latlng).round();
+                       pos = 
this._map.containerPointToLayerPointIgnoreSplits(pos);
                        this._setSize();
                        this._setPos(pos);
                }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to