diff --git a/loleaflet/dist/loleaflet.css b/loleaflet/dist/loleaflet.css index 4db830b8c..36df3e052 100644 --- a/loleaflet/dist/loleaflet.css +++ b/loleaflet/dist/loleaflet.css @@ -340,8 +340,8 @@ body { } .lokdialog_container.ui-dialog.ui-widget-content { - padding: 0px; - overflow: hidden; + padding: 0px; + overflow: visible; width: auto; height: auto; border: none; @@ -350,7 +350,8 @@ body { } .lokdialog.ui-dialog-content.ui-widget-content { - padding: 0px; + padding: 0px; + overflow: visible; } .lokdialog_canvas { @@ -372,4 +373,4 @@ body { .vex.vex-theme-bottom-right-corner .vex-content { bottom: 40px !important; right: 10px !important; -} \ No newline at end of file +} diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js index 20fe4b740..af50aba02 100644 --- a/loleaflet/src/control/Control.LokDialog.js +++ b/loleaflet/src/control/Control.LokDialog.js @@ -229,7 +229,6 @@ L.Control.LokDialog = L.Control.extend({ var dialogContainer = L.DomUtil.create('div', 'lokdialog', document.body); L.DomUtil.setStyle(dialogContainer, 'padding', '0px'); L.DomUtil.setStyle(dialogContainer, 'margin', '0px'); - L.DomUtil.setStyle(dialogContainer, 'overflow', 'hidden'); dialogContainer.id = strDlgId; var dialogCanvas = L.DomUtil.create('canvas', 'lokdialog_canvas', dialogContainer); @@ -375,14 +374,6 @@ L.Control.LokDialog = L.Control.extend({ ctx.drawImage(img, 0, 0); }; img.src = imgData; - - // increase the height of the container, - // so that if the floating window goes out of the parent, - // it doesn't get stripped off - height = parseInt(canvas.style.top) + canvas.height; - var currentHeight = parseInt($('#' + strDlgId).css('height')); - if (height > currentHeight) - $('#' + strDlgId).css('height', height + 'px'); }, _onDialogChildClose: function(dialogId) {