[Libreoffice-commits] online.git: loleaflet/src

Szymon Kłos (via logerrit) logerrit at kemper.freedesktop.org
Fri Sep 27 15:06:29 UTC 2019


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

New commits:
commit 514cffddace4f3d0cce741e6ae12a90245f01ebb
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Fri Sep 27 16:48:05 2019 +0200
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Fri Sep 27 17:06:11 2019 +0200

    jsdialogs: use instead of sidebar on mobile
    
    Change-Id: Ifc248c0799240a2d3b02261fd24bc79875acc5c1
    Reviewed-on: https://gerrit.libreoffice.org/79743
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
    Tested-by: Szymon Kłos <szymon.klos at collabora.com>

diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index cbb82a6d6..7f7815848 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -280,7 +280,9 @@ L.Control.LokDialog = L.Control.extend({
 				// When left/top are invalid, the dialog shows in the center.
 				this._launchDialog(e.id, left, top, width, height, e.title);
 			} else if (e.winType === 'deck') {
-				this._launchSidebar(e.id, width, height);
+				if (!window.mode.isMobile()) {
+					this._launchSidebar(e.id, width, height);
+				}
 			} else if (e.winType === 'child') {
 				var parentId = parseInt(e.parentId);
 				if (!this._isOpen(parentId))


More information about the Libreoffice-commits mailing list