loleaflet/src/control/Control.LokDialog.js |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 1f410064da480520050a00c5a6507c80e1d272b7
Author: Pranav Kant <pran...@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;
        },
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to