|
|
@ -287,8 +287,15 @@ function rcube_mail_ui()
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Update UI on window resize
|
|
|
|
* Update UI on window resize
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function resize()
|
|
|
|
function resize(e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
// resize in intervals to prevent lags and double onresize calls in Chrome (#1489005)
|
|
|
|
|
|
|
|
var interval = e ? 10 : 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (rcmail.resize_timeout)
|
|
|
|
|
|
|
|
window.clearTimeout(rcmail.resize_timeout);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rcmail.resize_timeout = window.setTimeout(function() {
|
|
|
|
if (rcmail.env.task == 'mail') {
|
|
|
|
if (rcmail.env.task == 'mail') {
|
|
|
|
if (rcmail.env.action == 'show' || rcmail.env.action == 'preview')
|
|
|
|
if (rcmail.env.action == 'show' || rcmail.env.action == 'preview')
|
|
|
|
layout_messageview();
|
|
|
|
layout_messageview();
|
|
|
@ -309,6 +316,7 @@ function rcube_mail_ui()
|
|
|
|
body[action]('floatingbuttons');
|
|
|
|
body[action]('floatingbuttons');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}, interval);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|