Skip to content

EspoCRM – Open Source CRM Application

fix email note body height

Yuri Kuznetsov4e804692ac8e
diff --git a/client/src/views/stream/notes/email-received.js b/client/src/views/stream/notes/email-received.js
index e1609a2ecd..0f594079b0 100644
--- a/client/src/views/stream/notes/email-received.js
+++ b/client/src/views/stream/notes/email-received.js
@@ -275,12 +275,12 @@ class EmailReceivedNoteStreamView extends NoteStreamView {
await this.reRender();
if (minHeight) {
- const iframe = this.bodyFieldView.element.querySelector('iframe');
+ const bodyContainer = this.bodyFieldView.element;
- if (iframe) {
- iframe.style.minHeight = minHeight + 'px';
+ if (bodyContainer) {
+ bodyContainer.style.minHeight = minHeight + 'px';
- setTimeout(() => iframe.style.minHeight = '', 200);
+ setTimeout(() => bodyContainer.style.minHeight = '', 200);
}
}
}