[Libreoffice-commits] online.git: loleaflet/src

Pranav Kant pranavk at collabora.co.uk
Fri Feb 9 09:36:54 UTC 2018


 loleaflet/src/layer/tile/TileLayer.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2a8159ad759e1eab4b6dfb8d898029a1d16059f4
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Fri Feb 9 15:06:06 2018 +0530

    loleaflet: IME candidate window pos should be wrt container, not layer
    
    Change-Id: I362fb414d114d64650a6c6ec466d066ea815b333

diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 3752f58b..2ef79251 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -1537,7 +1537,7 @@ L.TileLayer = L.GridLayer.extend({
 
 			// move the hidden input field with the cursor
 			var clipContainer = L.DomUtil.get('doc-clipboard-container');
-			var pos = this._map.latLngToLayerPoint(L.latLng(cursorPos)).round();
+			var pos = this._map.latLngToContainerPoint(L.latLng(cursorPos)).round();
 			L.DomUtil.setPosition(clipContainer, pos);
 		}
 		else if (this._cursorMarker) {


More information about the Libreoffice-commits mailing list