From 6c52c488668343ba8032f61d2369c3273fae05f7 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 24 Feb 2015 16:33:17 +0000 Subject: [PATCH] Disable compose dialog resize for mobile devices --- mail/js/app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mail/js/app.js b/mail/js/app.js index 96269d9c11..c5c27ce416 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -3717,6 +3717,13 @@ app.classes.mail = AppJS.extend( */ compose_resizeHandler: function() { + // Do not resize compose dialog if it's running on mobile device + // in this case user would be able to edit mail body by scrolling down, + // which is more convenient on small devices. Also resize mailbody with + // ckeditor may causes performance regression, especially on devices with + // very limited resources and slow proccessor. + if (egwIsMobile()) return; + var bodyH = egw_getWindowInnerHeight(); var textArea = this.et2.getWidgetById('mail_plaintext'); var $headerSec = jQuery('.mailComposeHeaderSection');