Mobile theme W.I.P.:

- Fix mail preview does not show calendar meeting mails
This commit is contained in:
Hadi Nategh 2016-04-20 09:54:33 +00:00
parent 20a191464b
commit 209b6de3a2
5 changed files with 45 additions and 9 deletions

View File

@ -5282,9 +5282,24 @@ app.classes.mail = AppJS.extend(
// Request email body from server // Request email body from server
iframe.set_src(egw.link('/index.php',{menuaction:'mail.mail_ui.loadEmailBody',_messageID:id})); iframe.set_src(egw.link('/index.php',{menuaction:'mail.mail_ui.loadEmailBody',_messageID:id}));
jQuery(iframe.getDOMNode()).on('load',function(){ jQuery(iframe.getDOMNode()).on('load',function(){
// Use prepare print function to copy iframe content into div
// as we don't want to show content in iframe. if (jQuery(this.contentWindow.document.body).find('#calendar-meeting').length > 0)
self.mail_prepare_print(jQuery(this)); {
var frame = this;
jQuery(this).show();
// calendar meeting mails still need to be in iframe, therefore, we calculate the height
// and set the iframe with a fixed height to be able to see all content without getting
// scrollbar becuase of scrolling issue in iframe
window.setTimeout(function(){jQuery(frame).height(frame.contentWindow.document.body.scrollHeight);}, 500);
}
else
{
// Use prepare print function to copy iframe content into div
// as we don't want to show content in iframe (scrolling problem).
self.mail_prepare_print(jQuery(this));
}
}); });
}); });
} }

View File

@ -674,6 +674,9 @@ div.mailPreviewHeaders div.mail_extraEmails {
#mail-index div#mail-index_mailPreview div#mail-index_mailPreviewHeadersSubject > span { #mail-index div#mail-index_mailPreview div#mail-index_mailPreviewHeadersSubject > span {
white-space: nowrap; white-space: nowrap;
} }
#mail-index_mail-index-header_right {
display: inline-flex;
}
div.mailPreviewHeaders div.mail_extraEmails.visible, div.mailPreviewHeaders div.mail_extraEmails.visible,
div.mailPreviewHeaders #mail-index_previewAttachmentArea.visible { div.mailPreviewHeaders #mail-index_previewAttachmentArea.visible {
position: absolute; position: absolute;
@ -1141,7 +1144,7 @@ body {
-moz-transition-timing-function: linear; -moz-transition-timing-function: linear;
-o-transition-timing-function: linear; -o-transition-timing-function: linear;
transition-timing-function: linear; transition-timing-function: linear;
background-color: #b4b4b4; background-color: #e6e6e6;
float: left; float: left;
width: 55px; width: 55px;
margin: 3px; margin: 3px;
@ -1992,6 +1995,9 @@ input[type=button] {
background-color: transparent; background-color: transparent;
width: 100%; width: 100%;
} }
#mail-index_mail-index-header_right {
display: inline-flex;
}
#mail-index_mailPreview { #mail-index_mailPreview {
overflow: hidden; overflow: hidden;
position: relative; position: relative;
@ -2589,6 +2595,12 @@ div.mailComposeHeaderSection > table {
body #popupMainDiv #mail-view_iframe { body #popupMainDiv #mail-view_iframe {
display: none; display: none;
} }
body #popupMainDiv div#mail-view > div {
height: 100%;
}
body #popupMainDiv div#mail-view {
height: 100%;
}
body #popupMainDiv #tempPrintDiv { body #popupMainDiv #tempPrintDiv {
display: block; display: block;
} }

View File

@ -134,6 +134,12 @@
#mail-view_iframe { #mail-view_iframe {
display: none; display: none;
} }
div#mail-view> div {
height: 100%;
}
div#mail-view {
height: 100%;
}
#tempPrintDiv { #tempPrintDiv {
display:block; display:block;
div:first-child { div:first-child {

View File

@ -2,8 +2,8 @@
<!DOCTYPE overlay PUBLIC "-//Stylite AG//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd"> <!DOCTYPE overlay PUBLIC "-//Stylite AG//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd">
<!-- $Id$ --> <!-- $Id$ -->
<overlay> <overlay>
<template id="mail.view" template="" lang="" group="0" version="1.9.001"> <template id="mail.view" template="" lang="" group="0" version="1.9.001" height="100%">
<vbox width="100%"> <vbox width="100%" height="100%">
<hbox class="dialogHeadbar"> <hbox class="dialogHeadbar">
<hbox> <hbox>
<toolbar id="toolbar" class="et2_head_toolbar" width="100%" view_range="1" flat_list="true"/> <toolbar id="toolbar" class="et2_head_toolbar" width="100%" view_range="1" flat_list="true"/>
@ -70,7 +70,7 @@
</grid> </grid>
</details> </details>
</hbox> </hbox>
<box> <box height="100%">
<iframe id="iframe" width="100%" height="100%" scrolling="auto"/> <iframe id="iframe" width="100%" height="100%" scrolling="auto"/>
</box> </box>
</vbox> </vbox>

View File

@ -1132,7 +1132,7 @@ body {
-moz-transition-timing-function: linear; -moz-transition-timing-function: linear;
-o-transition-timing-function: linear; -o-transition-timing-function: linear;
transition-timing-function: linear; transition-timing-function: linear;
background-color: #b4b4b4; background-color: #e6e6e6;
float: left; float: left;
width: 55px; width: 55px;
margin: 3px; margin: 3px;
@ -1983,6 +1983,9 @@ input[type=button] {
background-color: transparent; background-color: transparent;
width: 100%; width: 100%;
} }
#mail-index_mail-index-header_right {
display: inline-flex;
}
#mail-index_mailPreview { #mail-index_mailPreview {
overflow: hidden; overflow: hidden;
position: relative; position: relative;