[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3' - loleaflet/src

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Sep 18 15:02:26 UTC 2018


 loleaflet/src/layer/marker/ClipboardContainer.js |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 4d416b077a731753a1d7ca57116af0c393afd7b4
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Mon Sep 17 23:28:13 2018 -0400
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Tue Sep 18 17:02:08 2018 +0200

    loleaflet: update cursor position
    
    to fix IME pop up window
    
    Change-Id: Ied2ca0b7518a20f6114f7e8f628bc3c352d7326f
    Reviewed-on: https://gerrit.libreoffice.org/60653
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/loleaflet/src/layer/marker/ClipboardContainer.js b/loleaflet/src/layer/marker/ClipboardContainer.js
index 9308babdc..b98ca063e 100644
--- a/loleaflet/src/layer/marker/ClipboardContainer.js
+++ b/loleaflet/src/layer/marker/ClipboardContainer.js
@@ -80,6 +80,10 @@ L.ClipboardContainer = L.Layer.extend({
 
 	showCursor: function () {
 		this._map.addLayer(this._map._docLayer._cursorMarker);
+
+		// move the hidden input field with the cursor
+		var cursorPos = this._map._docLayer._visibleCursor.getNorthWest();
+		L.DomUtil.setPosition(this._container, this._map.latLngToLayerPoint(L.latLng(cursorPos)).round());
 	},
 
 	_setPos: function (pos) {


More information about the Libreoffice-commits mailing list