loleaflet/dist/loleaflet.css               |    9 +++++----
 loleaflet/src/control/Control.LokDialog.js |    9 ---------
 2 files changed, 5 insertions(+), 13 deletions(-)

New commits:
commit 17ef36d1544e651ac713c4cee452f58caef4f68e
Author: Jan Holesovsky <ke...@collabora.com>
Date:   Mon Mar 12 16:48:29 2018 +0100

    lokdialog: Don't strip the sub-menus in tunneled context menu.
    
    Simplifies the vertical growing / shrinking of listbox popups too.
    
    Change-Id: I8d8aa7e07a5bf9119713363dd95a5db843683feb
    Reviewed-on: https://gerrit.libreoffice.org/51154
    Reviewed-by: pranavk <pran...@collabora.co.uk>
    Tested-by: pranavk <pran...@collabora.co.uk>

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) {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to