[Libreoffice-commits] online.git: loleaflet/src
Dennis Francis (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 1 02:30:42 UTC 2020
loleaflet/src/control/Control.LokDialog.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 1a4322a940073c2a4f461f971a3f04ced65007b1
Author: Dennis Francis <dennis.francis at collabora.com>
AuthorDate: Fri May 1 02:23:30 2020 +0530
Commit: Dennis Francis <dennis.francis at collabora.com>
CommitDate: Fri May 1 04:30:23 2020 +0200
loleaflet: mobile: center the dialog horizontally
Before this the dialogs (in mobile) like 'autofilter/validation list' were
not centered horizontally and looked awkward. However as for vertical
positioning, it is correctly glued to the top of the map as said in
the comments.
Change-Id: I2f31075742ac8f40b3fd4d4016dbfef635b5f805
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93238
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Dennis Francis <dennis.francis at collabora.com>
diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index bcdf1f4fa..dd0a78113 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -1238,7 +1238,7 @@ L.Control.LokDialog = L.Control.extend({
// on mobile, force the positioning to the top, so that it is not
// covered by the virtual keyboard
if (window.mode.isMobile()) {
- $(dialogContainer).dialog('option', 'position', { my: 'left top', at: 'let top', of: '#document-container' });
+ $(dialogContainer).dialog('option', 'position', { my: 'center top', at: 'center top', of: '#document-container' });
transformation.origin = 'center top';
transformation.translate.y = 0;
}
More information about the Libreoffice-commits
mailing list