Do not dock/undock mil preview when it's set for vertical pane

This commit is contained in:
hadi 2023-03-13 16:08:19 +01:00
parent 5c8fb1eb2e
commit e4a23f8dbb

View File

@ -1047,8 +1047,9 @@ app.classes.mail = AppJS.extend(
*/ */
mail_disablePreviewArea: function(_value) { mail_disablePreviewArea: function(_value) {
var splitter = this.et2.getWidgetById('mailSplitter'); var splitter = this.et2.getWidgetById('mailSplitter');
var previewPane = this.egw.preference('previewPane', 'mail');
// return if there's no splitter we maybe in mobile mode // 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(){ let dock = function(){
splitter.style.setProperty('--max','100%'); splitter.style.setProperty('--max','100%');
splitter.dock(); splitter.dock();