fix(ui): Fix invalid display when creating new appointment / mail on mobile. Initialize isFullscreen to if screen is in portrait. Fixes #5970.

This commit is contained in:
smizrahi
2024-05-22 10:35:16 +02:00
parent 6ac8525bfe
commit 314b39dd1c
2 changed files with 2 additions and 2 deletions
@@ -16,7 +16,7 @@
this.account = stateAccount;
this.autocomplete = {to: {}, cc: {}, bcc: {}};
this.autosave = null;
this.isFullscreen = false;
this.isFullscreen = (typeof screen.orientation !== 'undefined' && screen.orientation && 'portrait-primary' == screen.orientation.type);
this.hideBcc = (stateMessage.editable.bcc.length === 0);
this.hideCc = (stateMessage.editable.cc.length === 0);
this.identities = stateAccount.identities;
@@ -230,7 +230,7 @@
this.categories = {};
this.showRecurrenceEditor = this.component.$hasCustomRepeat;
this.showAttendeesEditor = this.component.attendees && this.component.attendees.length;
this.isFullscreen = false;
this.isFullscreen = (typeof screen.orientation !== 'undefined' && screen.orientation && 'portrait-primary' == screen.orientation.type);
this.originalModalCancel = $mdDialog.cancel;
if (this.component.type == 'appointment') {