loleaflet/src/control/Control.LokDialog.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b860ecf3900304841cdfa289213193153cf9506c
Author:     Ashod Nakashian <ashod.nakash...@collabora.co.uk>
AuthorDate: Sun Feb 3 17:32:25 2019 -0500
Commit:     Ashod Nakashian <ashnak...@gmail.com>
CommitDate: Thu Mar 28 02:05:52 2019 +0100

    leaflet: align drop-down lists with parent combobox
    
    This ensures that child-windows are aligned correctly
    with their parents.
    
    Change-Id: I3c491fb34083f26c7d376924ab04fbce83103f22
    Reviewed-on: https://gerrit.libreoffice.org/68250
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>
    Tested-by: Szymon Kłos <szymon.k...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/69874
    Reviewed-by: Ashod Nakashian <ashnak...@gmail.com>
    Tested-by: Ashod Nakashian <ashnak...@gmail.com>

diff --git a/loleaflet/src/control/Control.LokDialog.js 
b/loleaflet/src/control/Control.LokDialog.js
index 7c6c7e95a..1836bf7a2 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -658,12 +658,12 @@ L.Control.LokDialog = L.Control.extend({
                var dialogTitle = $('.lokdialog_notitle');
                if (dialogTitle != null && dialogTitle.length == 0) {
                        var dialogTitleBar = $('.ui-dialog-titlebar');
-                       top += dialogTitleBar.height() * L.getDpiScaleFactor();
+                       top += dialogTitleBar.outerHeight() * 
L.getDpiScaleFactor();
                }
 
                floatingCanvas.id = strId + '-floating';
                L.DomUtil.setStyle(floatingCanvas, 'position', 'absolute');
-               L.DomUtil.setStyle(floatingCanvas, 'left', left + 'px'); // 
yes, it's necessary to append 'px'
+               L.DomUtil.setStyle(floatingCanvas, 'left', (left - 1) + 'px'); 
// Align drop-down list with parent.
                L.DomUtil.setStyle(floatingCanvas, 'top', top + 'px');
 
                // attach events
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to