loleaflet/dist/loleaflet.css               |    4 ++++
 loleaflet/src/control/Control.LokDialog.js |    2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 2b8c4ee3bb2535dfc40019cf6c31684102606688
Author: Pranav Kant <[email protected]>
Date:   Thu Nov 9 09:48:44 2017 +0530

    lokdialog: Remove padding around dialog canvas completely
    
    Change-Id: Ie6d65ca23936f081c5e2b37fff6f5d90d9fcd06e

diff --git a/loleaflet/dist/loleaflet.css b/loleaflet/dist/loleaflet.css
index 5c64f4dd..f139c026 100644
--- a/loleaflet/dist/loleaflet.css
+++ b/loleaflet/dist/loleaflet.css
@@ -344,3 +344,7 @@ body {
 .lokdialog.ui-dialog-content.ui-widget-content {
         padding: 0px;
 }
+
+.lokdialog_canvas {
+        display: block; /* required to remove all borders around canvas 
element */
+}
diff --git a/loleaflet/src/control/Control.LokDialog.js 
b/loleaflet/src/control/Control.LokDialog.js
index e7c2cd4c..329c45ea 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -39,7 +39,7 @@ L.Control.LokDialog = L.Control.extend({
 
        _launchDialog: function(dialogId, width, height) {
                var canvas = '<div class="lokdialog" style="padding: 0px; 
margin: 0px; overflow: hidden;" id="' + dialogId + '">' +
-                   '<canvas tabindex="0" id="' + dialogId + '-canvas" width="' 
+ width + 'px" height="' + height + 'px"></canvas>' +
+                   '<canvas class="lokdialog_canvas" tabindex="0" id="' + 
dialogId + '-canvas" width="' + width + 'px" height="' + height + 
'px"></canvas>' +
                    '</div>';
                $(document.body).append(canvas);
                var that = this;
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to