|
|
@ -218,6 +218,7 @@ function rcube_mail_ui()
|
|
|
|
|
|
|
|
|
|
|
|
// don't use $(window).resize() due to some unwanted side-effects
|
|
|
|
// don't use $(window).resize() due to some unwanted side-effects
|
|
|
|
window.onresize = resize;
|
|
|
|
window.onresize = resize;
|
|
|
|
|
|
|
|
resize();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -255,6 +256,20 @@ function rcube_mail_ui()
|
|
|
|
if (rcmail.env.task == 'mail' && rcmail.env.action == 'compose') {
|
|
|
|
if (rcmail.env.task == 'mail' && rcmail.env.action == 'compose') {
|
|
|
|
layout_composeview();
|
|
|
|
layout_composeview();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// make iframe footer buttons float if scrolling is active
|
|
|
|
|
|
|
|
$('body.iframe .footerleft').each(function(){
|
|
|
|
|
|
|
|
var footer = $(this),
|
|
|
|
|
|
|
|
body = $(document.body),
|
|
|
|
|
|
|
|
floating = footer.hasClass('floating'),
|
|
|
|
|
|
|
|
overflow = body.outerHeight(true) > $(window).height();
|
|
|
|
|
|
|
|
if (overflow != floating) {
|
|
|
|
|
|
|
|
var action = overflow ? 'addClass' : 'removeClass';
|
|
|
|
|
|
|
|
footer[action]('floating');
|
|
|
|
|
|
|
|
body[action]('floatingbuttons');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|