Fix mail preview content frame sometimes gets short height because of repeated id

This commit is contained in:
Hadi Nategh 2022-09-06 16:10:59 +02:00
parent 93c9932fc7
commit 9294ab81db
2 changed files with 6 additions and 12 deletions

View File

@ -556,13 +556,6 @@ et2-details.attachments::part(summary){
#mail-index_toolbar > #toolbar-actionlist { #mail-index_toolbar > #toolbar-actionlist {
width:auto; width:auto;
} }
#mail-index_mailPreviewContainer {
position: absolute;
top: 9em;
bottom: 0;
left: 0px;
right: 5px;
}
#mail-index_previewAttachmentArea { #mail-index_previewAttachmentArea {
background-color:#f0f0f0; background-color:#f0f0f0;
max-height: 3.6em; max-height: 3.6em;
@ -1027,7 +1020,7 @@ div#mail-index_nm.splitter-pane {min-height: 100px;}
#calendar-meeting table.et2_grid.meetingRequest td { #calendar-meeting table.et2_grid.meetingRequest td {
padding-left: 8px !important; padding-left: 8px !important;
} }
#mail-index_mailPreview_mailPreviewContainer { #mail-index_mailPreviewContainer {
height: calc(100% - 13em); height: calc(100% - 13em);
border-top: 1px solid silver; border-top: 1px solid silver;
margin-bottom: 0; margin-bottom: 0;

View File

@ -10,7 +10,7 @@
</template> </template>
<template id="mail.index.preview"> <template id="mail.index.preview">
<toolbar id="toolbar" list_header="short"/> <toolbar id="toolbar" list_header="short"/>
<grid id="mailPreview" width="100%" height="100%" > <grid id="mailPreview" width="100%">
<columns> <columns>
<column/> <column/>
</columns> </columns>
@ -108,13 +108,14 @@
</hbox> </hbox>
<box id="mailPreviewContainer">
<iframe frameborder="1" id="messageIFRAME" scrolling="auto"/>
</box>
</vbox> </vbox>
</row> </row>
</rows> </rows>
</grid> </grid>
<box id="mailPreviewContainer">
<iframe frameborder="1" id="messageIFRAME" scrolling="auto"/>
</box>
</template> </template>
<template id="mail.index.nosplitter" template="" lang="" group="0" version="1.9.001"> <template id="mail.index.nosplitter" template="" lang="" group="0" version="1.9.001">
<nextmatch id="nm" onselect="app.mail.mail_preview" template="mail.index.rows.horizental" header_left="mail.index.add" <nextmatch id="nm" onselect="app.mail.mail_preview" template="mail.index.rows.horizental" header_left="mail.index.add"