[Libreoffice-commits] online.git: loleaflet/src
Pranav Kant
pranavk at collabora.co.uk
Mon Jan 15 11:18:39 UTC 2018
loleaflet/src/control/Control.LokDialog.js | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 1f410064da480520050a00c5a6507c80e1d272b7
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Mon Jan 15 16:47:04 2018 +0530
loleaflet: Delay showing of dialog until we have the content
Change-Id: I5d29e64011931fc285191eb713f8cf746dbc6963
diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index b6cb4c41..6dd22772 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -204,6 +204,8 @@ L.Control.LokDialog = L.Control.extend({
that._onDialogClose(that._toRawDlgId(strDlgId), true);
}
});
+ // don't show the dialog surround until we have the dialog content
+ $(dialogContainer).parent().hide();
this._dialogs[this._toRawDlgId(strDlgId)] = {
open: true,
@@ -272,6 +274,10 @@ L.Control.LokDialog = L.Control.extend({
}
ctx.drawImage(img, x, y);
+
+ // if dialog is hidden, show it
+ var dialogContainer = L.DomUtil.get(strDlgId);
+ $(dialogContainer).parent().show();
};
img.src = imgData;
},
More information about the Libreoffice-commits
mailing list