loleaflet/src/layer/marker/Cursor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 551672c08da48571cbaec820195f441cf0d8a7c1 Author: Jan Holesovsky <ke...@collabora.com> Date: Fri Jun 26 13:45:40 2015 +0200 Further tweaks to the cursor position. diff --git a/loleaflet/src/layer/marker/Cursor.js b/loleaflet/src/layer/marker/Cursor.js index 648f543..cbe683d 100644 --- a/loleaflet/src/layer/marker/Cursor.js +++ b/loleaflet/src/layer/marker/Cursor.js @@ -86,7 +86,8 @@ 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'; + this._container.style.left = '-' + (this._container.clientWidth - size.x)/2 + 'px'; + this._container.style.top = '-' + (this._container.clientHeight - size.y - 2)/2 + 'px'; } }); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits