[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3-0' - loleaflet/src
Pranav Kant
pranavk at collabora.co.uk
Thu Feb 15 14:35:25 UTC 2018
loleaflet/src/layer/tile/TileLayer.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6b6bb753ff532d88addbf7ce9a90191455947dd0
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
(cherry picked from commit 2a8159ad759e1eab4b6dfb8d898029a1d16059f4)
Reviewed-on: https://gerrit.libreoffice.org/49776
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index a4b95dbc..7072a848 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -1441,7 +1441,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