From d8cc92efe49eeddf278035d9ce2575c9b21b73c4 Mon Sep 17 00:00:00 2001 From: hadi Date: Mon, 13 Mar 2023 16:08:19 +0100 Subject: [PATCH] Do not dock/undock mil preview when it's set for vertical pane --- mail/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index cdea52bf64..5ffbfd8e61 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -1047,8 +1047,9 @@ app.classes.mail = AppJS.extend( */ mail_disablePreviewArea: function(_value) { var splitter = this.et2.getWidgetById('mailSplitter'); + var previewPane = this.egw.preference('previewPane', 'mail'); // return if there's no splitter we maybe in mobile mode - if (typeof splitter == 'undefined' || splitter == null) return; + if (typeof splitter == 'undefined' || splitter == null || previewPane == 'vertical') return; let dock = function(){ splitter.style.setProperty('--max','100%'); splitter.dock();