Disable compose dialog resize for mobile devices

This commit is contained in:
Hadi Nategh 2015-02-24 16:33:17 +00:00
parent b3689526dd
commit 6c52c48866

View File

@ -3717,6 +3717,13 @@ app.classes.mail = AppJS.extend(
*/ */
compose_resizeHandler: function() 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 bodyH = egw_getWindowInnerHeight();
var textArea = this.et2.getWidgetById('mail_plaintext'); var textArea = this.et2.getWidgetById('mail_plaintext');
var $headerSec = jQuery('.mailComposeHeaderSection'); var $headerSec = jQuery('.mailComposeHeaderSection');