[Libreoffice-commits] online.git: loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Mar 28 01:06:09 UTC 2019
loleaflet/src/control/Control.LokDialog.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit b860ecf3900304841cdfa289213193153cf9506c
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Sun Feb 3 17:32:25 2019 -0500
Commit: Ashod Nakashian <ashnakash at 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.klos at collabora.com>
Tested-by: Szymon Kłos <szymon.klos at collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/69874
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at 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
More information about the Libreoffice-commits
mailing list