mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-23 05:41:02 +01:00
* eMail: limit resizing of compose and view windows to available screen height
This commit is contained in:
parent
2620fa783a
commit
5b4deec193
@ -51,6 +51,7 @@ function initAll()
|
||||
//alert(fm_height+' resize By:0,'+resizeHeight);
|
||||
if (fm_height >= 750) window.resizeBy(0,resizeHeight);
|
||||
}
|
||||
if (egw_getWindowOuterHeight()>screen.availHeight) window.resizeBy(0,screen.availHeight-egw_getWindowOuterHeight());
|
||||
//tab.init();
|
||||
//alert(document.onkeydown);
|
||||
var titletext = document.getElementById('fm_compose_subject').value;
|
||||
|
@ -1126,18 +1126,19 @@ function fm_readMessage(_url, _windowName, _node) {
|
||||
}
|
||||
} else {
|
||||
window.setTimeout(function() {
|
||||
|
||||
//alert('Height:'+egw_getWindowOuterHeight());
|
||||
if (!felamimail_abortView) {
|
||||
// Remove the url which shall be opened as we do not want to open this
|
||||
// message in the preview window
|
||||
window.felamimail_readMessage = null;
|
||||
|
||||
egw_openWindowCentered(_url, _windowName, 750, egw_getWindowOuterHeight());
|
||||
WinId = egw_openWindowCentered(_url, _windowName, 750, egw_getWindowOuterHeight());
|
||||
|
||||
// Refresh the folder state (count of unread emails)
|
||||
egw_appWindow('felamimail').xajax_doXMLHTTP("felamimail.ajaxfelamimail.refreshFolder");
|
||||
|
||||
fm_msg_removeClass(windowArray[1], 'unseen');
|
||||
//alert('Got:'+WinId.outerHeight);
|
||||
}
|
||||
}, 0);
|
||||
}
|
||||
|
@ -41,6 +41,7 @@ function goToMessage(url) {
|
||||
function initAll()
|
||||
{
|
||||
//tab.init();
|
||||
//alert('ViewMessage:'+egw_getWindowOuterHeight()+' Available:'+screen.availHeight);
|
||||
if (egw_getWindowOuterHeight()<750)
|
||||
{
|
||||
var fm_height = screen.availHeight/100*75;
|
||||
@ -48,7 +49,7 @@ function initAll()
|
||||
//alert(fm_height+' resize By:0,'+resizeHeight);
|
||||
if (fm_height >= 750) window.resizeBy(0,resizeHeight);
|
||||
}
|
||||
|
||||
if (egw_getWindowOuterHeight()>screen.availHeight) window.resizeBy(0,screen.availHeight-egw_getWindowOuterHeight());
|
||||
var headerTable = document.getElementById('headerTable');
|
||||
var headerDIV = document.getElementById('headerDIV');
|
||||
if (headerTable) {
|
||||
|
Loading…
Reference in New Issue
Block a user