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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Sep 27 13:48:44 UTC 2018


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

New commits:
commit 91c074a1f20f70c3e28b3b1afadc46952d99f2f4
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Mon Sep 17 23:28:13 2018 -0400
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Thu Sep 27 09:48:16 2018 -0400

    loleaflet: update cursor position
    
    to fix IME pop up window
    
    Change-Id: Ied2ca0b7518a20f6114f7e8f628bc3c352d7326f

diff --git a/loleaflet/src/layer/marker/ClipboardContainer.js b/loleaflet/src/layer/marker/ClipboardContainer.js
index 2cc5deb0d..1ae56d7d9 100644
--- a/loleaflet/src/layer/marker/ClipboardContainer.js
+++ b/loleaflet/src/layer/marker/ClipboardContainer.js
@@ -81,6 +81,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