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();