loleaflet/src/layer/marker/Cursor.js  |    1 +
 loleaflet/src/layer/tile/TileLayer.js |    3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit bee60c69e89de101f916acea01e5797380c49a81
Author: Mihai Varga <mihai.va...@collabora.com>
Date:   Fri Jun 26 14:34:18 2015 +0300

    Move the cursor to the left by half its size

diff --git a/loleaflet/src/layer/marker/Cursor.js 
b/loleaflet/src/layer/marker/Cursor.js
index 9c5b4f8..648f543 100644
--- a/loleaflet/src/layer/marker/Cursor.js
+++ b/loleaflet/src/layer/marker/Cursor.js
@@ -86,6 +86,7 @@ L.Cursor = L.Layer.extend({
        setSize: function (size) {
                this._container.style.lineHeight = size.y + 'px';
                this._span.style.fontSize = size.y - 2 + 'px';
+               this._container.style.left = '-' + 
this._container.clientWidth/2 + 'px';
        }
 });
 
diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index 15b2d8b..d46617d 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -797,8 +797,7 @@ L.TileLayer = L.GridLayer.extend({
                        var pixBounds = 
L.bounds(this._map.latLngToLayerPoint(this._visibleCursor.getSouthWest()),
                                                 
this._map.latLngToLayerPoint(this._visibleCursor.getNorthEast()));
 
-                       var latBounds = 
L.rectangle(this._visibleCursor).getLatLngs();
-                       this._cursorMarker = L.cursor(latBounds[2], {color: 
'red'});
+                       this._cursorMarker = 
L.cursor(this._visibleCursor.getNorthWest());
                        this._map._bDisableKeyboard = true;
                        this._map.addLayer(this._cursorMarker);
                        this._cursorMarker.setSize(pixBounds.getSize());
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to