mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Fix mailvelope display print with multipage content
This commit is contained in:
parent
27e7c49e30
commit
3908b46079
@ -4393,12 +4393,17 @@ app.classes.mail = AppJS.extend(
|
||||
{
|
||||
var tempPrint = jQuery('div#tempPrintDiv');
|
||||
var mailvelopeTopContainer = jQuery('div.mailDisplayContainer');
|
||||
var originFrame = jQuery('#mail-display_mailDisplayBodySrc');
|
||||
var iframe = jQuery(this.mailvelope_iframe_selector);
|
||||
|
||||
if (tempPrint.length >0)
|
||||
{
|
||||
// Mailvelope iframe height is approximately equal to the height of encrypted origin message
|
||||
// we add an arbitary plus pixels to make sure it's covering the full content in print view and
|
||||
// it is not getting acrollbar in normal view
|
||||
// @TODO: after Mailvelope plugin provides a hieght value, we can replace the height with an accurate value
|
||||
iframe.addClass('mailvelopeIframe').height(originFrame[0].contentWindow.document.body.scrollHeight + 400);
|
||||
tempPrint.hide();
|
||||
iframe.addClass('mailvelopeIframe');
|
||||
mailvelopeTopContainer.addClass('mailvelopeTopContainer');
|
||||
}
|
||||
},
|
||||
|
@ -803,12 +803,11 @@ blockquote blockquote blockquote blockquote blockquote blockquote{
|
||||
padding-top: 10px;
|
||||
}
|
||||
div.mailDisplayContainer.mailvelopeTopContainer {
|
||||
position:fixed !important;
|
||||
top:190px;
|
||||
}
|
||||
div.mailDisplayContainer.mailvelopeTopContainer > iframe {
|
||||
position: inherit;
|
||||
min-width: 860px;
|
||||
position: static;
|
||||
min-width: 860px;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -800,12 +800,11 @@ blockquote blockquote blockquote blockquote blockquote blockquote {
|
||||
padding-top: 10px;
|
||||
}
|
||||
div.mailDisplayContainer.mailvelopeTopContainer {
|
||||
position:fixed !important;
|
||||
top:190px;
|
||||
top:190px;
|
||||
}
|
||||
div.mailDisplayContainer.mailvelopeTopContainer > iframe {
|
||||
position: inherit;
|
||||
min-width: 860px;
|
||||
position: static;
|
||||
min-width: 860px;
|
||||
}
|
||||
}
|
||||
/* MOBILE and tablets (Portrait & Landscape) View --------------*/
|
||||
|
Loading…
Reference in New Issue
Block a user