lokdialog: Remove padding around dialog canvas completely
Change-Id: Ie6d65ca23936f081c5e2b37fff6f5d90d9fcd06e
This commit is contained in:
parent
a2a72572bb
commit
2b8c4ee3bb
2 changed files with 5 additions and 1 deletions
4
loleaflet/dist/loleaflet.css
vendored
4
loleaflet/dist/loleaflet.css
vendored
|
@ -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 */
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue