From 4f59ab7d819e8f478cf0798ad8f55ac0e2a1e2ed Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 15 Oct 2014 15:49:41 +0000 Subject: [PATCH] resize import popup to regular compose size --- mail/inc/class.mail_ui.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index c6de002500..60826bb4a6 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -3112,8 +3112,10 @@ class mail_ui } if (!$importFailed) { + list($width, $height) = explode('x', egw_link::get_registry('mail', 'add_popup')); + if ($width > 0 && $height > 0) egw_json_response::get()->call('resizeTo', $width, $height); ExecMethod2('mail.mail_ui.displayMessage',$linkData); - exit; + return; } } if (!is_array($content)) $content = array();