mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
* workaround for Fennec bug https://bugzilla.mozilla.org/show_bug.cgi?format=multiple&id=648250 window.(outerHeight|outerWidth|screenX|screenY) throw exception
This commit is contained in:
parent
b958ad8f8c
commit
a672be9a43
@ -39,6 +39,25 @@ else if (document.layers)
|
||||
is_ns4 = true;
|
||||
}
|
||||
|
||||
//console.log('is_ie='+is_ie+', is_ie5='+is_ie5+', is_mozilla='+is_mozilla+', is_moz1_6='+is_moz1_6+', is_ns4='+is_ns4);
|
||||
|
||||
/**
|
||||
* Check whether the console object is defined - if not, define one
|
||||
*/
|
||||
if (typeof window.console == 'undefined')
|
||||
{
|
||||
window.console = {
|
||||
'log': function() {
|
||||
},
|
||||
'warn': function() {
|
||||
},
|
||||
'error': function() {
|
||||
},
|
||||
'info': function() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function egw_set_checkbox_multiselect_enabled(_id, _enabled)
|
||||
{
|
||||
//Retrieve the checkbox_multiselect base div
|
||||
@ -111,7 +130,8 @@ function egw_openWindowCentered(_url, _windowName, _width, _height)
|
||||
// return the left position of the window
|
||||
function egw_getWindowLeft()
|
||||
{
|
||||
if(is_mozilla)
|
||||
// workaround for https://bugzilla.mozilla.org/show_bug.cgi?format=multiple&id=648250 window.(outerHeight|outerWidth|screenX|screenY) throw exception
|
||||
if(is_mozilla && navigator.userAgent.toLowerCase().indexOf('fennec') == -1)
|
||||
{
|
||||
return window.screenX;
|
||||
}
|
||||
@ -124,7 +144,8 @@ function egw_getWindowLeft()
|
||||
// return the left position of the window
|
||||
function egw_getWindowTop()
|
||||
{
|
||||
if(is_mozilla)
|
||||
// workaround for https://bugzilla.mozilla.org/show_bug.cgi?format=multiple&id=648250 window.(outerHeight|outerWidth|screenX|screenY) throw exception
|
||||
if(is_mozilla && navigator.userAgent.toLowerCase().indexOf('fennec') == -1)
|
||||
{
|
||||
return window.screenY;
|
||||
}
|
||||
@ -170,7 +191,8 @@ function egw_getWindowInnerHeight()
|
||||
// get the outerWidth of the browser window. For IE we simply return the innerWidth
|
||||
function egw_getWindowOuterWidth()
|
||||
{
|
||||
if (is_mozilla)
|
||||
// workaround for https://bugzilla.mozilla.org/show_bug.cgi?format=multiple&id=648250 window.(outerHeight|outerWidth|screenX|screenY) throw exception
|
||||
if (is_mozilla && navigator.userAgent.toLowerCase().indexOf('fennec') == -1)
|
||||
{
|
||||
return window.outerWidth;
|
||||
}
|
||||
@ -183,7 +205,8 @@ function egw_getWindowOuterWidth()
|
||||
// get the outerHeight of the browser window. For IE we simply return the innerHeight
|
||||
function egw_getWindowOuterHeight()
|
||||
{
|
||||
if (is_mozilla)
|
||||
// workaround for https://bugzilla.mozilla.org/show_bug.cgi?format=multiple&id=648250 window.(outerHeight|outerWidth|screenX|screenY) throw exception
|
||||
if (is_mozilla && navigator.userAgent.toLowerCase().indexOf('fennec') == -1)
|
||||
{
|
||||
return window.outerHeight;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user