mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-31 19:16:20 +02:00
We do not need to resize explicitly the mail display popup, because the window resize handler does it correctly
This commit is contained in:
parent
2ebad86634
commit
cbc3074491
@ -168,19 +168,7 @@ app.classes.mail = AppJS.extend(
|
|||||||
var body = this.et2.getWidgetById('mailDisplayBodySrc');
|
var body = this.et2.getWidgetById('mailDisplayBodySrc');
|
||||||
this.mail_isMainWindow = false;
|
this.mail_isMainWindow = false;
|
||||||
this.mail_display();
|
this.mail_display();
|
||||||
body.node.parentNode.style.top=subject.node.offsetTop+40+'px';
|
|
||||||
var app_registry = egw.link_get_registry('mail');
|
|
||||||
var w=870;
|
|
||||||
if (typeof app_registry['view'] != 'undefined' && typeof app_registry['view_popup'] != 'undefined' )
|
|
||||||
{
|
|
||||||
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());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
window.resizeTo((w_h[0]?w_h[0]:870),(w_h[1]?w_h[1]:(screen.availHeight>egw_getWindowOuterHeight()?screen.availHeight:egw_getWindowOuterHeight())));
|
|
||||||
|
|
||||||
// Register attachments for drag
|
// Register attachments for drag
|
||||||
this.register_for_drag(
|
this.register_for_drag(
|
||||||
this.et2.getArrayMgr("content").getEntry('mail_id'),
|
this.et2.getArrayMgr("content").getEntry('mail_id'),
|
||||||
|
Loading…
Reference in New Issue
Block a user