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

New commits:
commit 27d58d3e2fbfbd95a8a9453c4306d78a8ffba4d4
Author: Pranav Kant <pran...@collabora.co.uk>
Date:   Thu Mar 1 19:03:04 2018 +0530

    loleaflet: Fix slightly off IME candidate window position
    
    Use LOK cursor's south west point instead of north. Making it north
    makes the candidate window appear over the characters being typed
    
    Change-Id: I96577a0635103561118dda3672b11c3c22310811
    Reviewed-on: https://gerrit.libreoffice.org/50574
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>
    Tested-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index f32f737d6..140f14993 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -1446,7 +1446,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.latLngToContainerPoint(L.latLng(cursorPos)).round();
+                       var pos = 
this._map.latLngToContainerPoint(L.latLng(this._visibleCursor.getCenter())).round();
                        L.DomUtil.setPosition(clipContainer, pos);
                }
                else if (this._cursorMarker) {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to