mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 16:29:22 +01:00
Missed ID change from r45523, fixes undefined error when double-clicking a mail
This commit is contained in:
parent
7809e30718
commit
1450ac0016
@ -138,17 +138,15 @@ app.classes.mail = AppJS.extend(
|
|||||||
if (isDisplay)
|
if (isDisplay)
|
||||||
{
|
{
|
||||||
var subject = this.et2.getWidgetById('mail_displaysubject');
|
var subject = this.et2.getWidgetById('mail_displaysubject');
|
||||||
var body = this.et2.getWidgetById('mail_displaybody');
|
var body = this.et2.getWidgetById('mailDisplayBodySrc');
|
||||||
body.node.parentNode.style.top=subject.node.offsetTop+40+'px';
|
body.node.parentNode.style.top=subject.node.offsetTop+40+'px';
|
||||||
var app_registry = egw.link_get_registry('mail');//this.appname);
|
var app_registry = egw.link_get_registry('mail');
|
||||||
//console.log(app_registry);
|
|
||||||
w=870;
|
w=870;
|
||||||
if (typeof app_registry['view'] != 'undefined' && typeof app_registry['view_popup'] != 'undefined' )
|
if (typeof app_registry['view'] != 'undefined' && typeof app_registry['view_popup'] != 'undefined' )
|
||||||
{
|
{
|
||||||
var w_h =app_registry['view_popup'].split('x');
|
var w_h =app_registry['view_popup'].split('x');
|
||||||
if (w_h[1] == 'egw_getWindowOuterHeight()') w_h[1] = (screen.availHeight>egw_getWindowOuterHeight()?screen.availHeight:egw_getWindowOuterHeight());
|
if (w_h[1] == 'egw_getWindowOuterHeight()') w_h[1] = (screen.availHeight>egw_getWindowOuterHeight()?screen.availHeight:egw_getWindowOuterHeight());
|
||||||
}
|
}
|
||||||
//alert('resizing to'+(w_h[0]?w_h[0]:870)+','+(w_h[1]?w_h[1]:egw_getWindowOuterHeight()));
|
|
||||||
window.resizeTo((w_h[0]?w_h[0]:870),(w_h[1]?w_h[1]:(screen.availHeight>egw_getWindowOuterHeight()?screen.availHeight:egw_getWindowOuterHeight())));
|
window.resizeTo((w_h[0]?w_h[0]:870),(w_h[1]?w_h[1]:(screen.availHeight>egw_getWindowOuterHeight()?screen.availHeight:egw_getWindowOuterHeight())));
|
||||||
}
|
}
|
||||||
if (isCompose)
|
if (isCompose)
|
||||||
|
Loading…
Reference in New Issue
Block a user