summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-09-23 09:24:42 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2020-09-23 09:49:19 +0200
commitc239143539c257b6499ab3d6d4598082b17ae200 (patch)
treef37bed4f96a1d20272a2df5dd7a40d3ed5aad511
parentCompile C++ for the iOS app as C++17 (diff)
downloadonline-c239143539c257b6499ab3d6d4598082b17ae200.tar.gz
online-c239143539c257b6499ab3d6d4598082b17ae200.zip
LokDialog: Remember tooltip position
Change-Id: Ib3d6ca3d554ed2ebf47b5012b5101fbf194a970d Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103229 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
-rw-r--r--loleaflet/src/control/Control.LokDialog.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index 2be9330375..23fe890cd6 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -345,6 +345,8 @@ L.Control.LokDialog = L.Control.extend({
this._dialogs[parentId].childid = e.id;
this._dialogs[parentId].childwidth = width;
this._dialogs[parentId].childheight = height;
+ this._dialogs[parentId].childx = left;
+ this._dialogs[parentId].childy = top;
if (e.winType === 'tooltip')
this._dialogs[parentId].childistooltip = true;