mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
nicer workaround
This commit is contained in:
parent
a672be9a43
commit
52655f1c14
@ -130,30 +130,25 @@ function egw_openWindowCentered(_url, _windowName, _width, _height)
|
||||
// return the left position of the window
|
||||
function egw_getWindowLeft()
|
||||
{
|
||||
// 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;
|
||||
// workaround for Fennec bug https://bugzilla.mozilla.org/show_bug.cgi?format=multiple&id=648250 window.(outerHeight|outerWidth|screenX|screenY) throw exception
|
||||
try {
|
||||
if(is_mozilla) return window.screenX;
|
||||
}
|
||||
else
|
||||
{
|
||||
catch (e) {}
|
||||
|
||||
return window.screenLeft;
|
||||
}
|
||||
}
|
||||
|
||||
// return the left position of the window
|
||||
function egw_getWindowTop()
|
||||
{
|
||||
// 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;
|
||||
// workaround for Fennec bug https://bugzilla.mozilla.org/show_bug.cgi?format=multiple&id=648250 window.(outerHeight|outerWidth|screenX|screenY) throw exception
|
||||
try {
|
||||
if(is_mozilla) return window.screenY;
|
||||
}
|
||||
else
|
||||
{
|
||||
//alert(window.screenTop);
|
||||
catch (e) {}
|
||||
|
||||
return window.screenTop-90;
|
||||
}
|
||||
}
|
||||
|
||||
// get the outerWidth of the browser window. For IE we simply return the innerWidth
|
||||
@ -191,29 +186,25 @@ function egw_getWindowInnerHeight()
|
||||
// get the outerWidth of the browser window. For IE we simply return the innerWidth
|
||||
function egw_getWindowOuterWidth()
|
||||
{
|
||||
// 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;
|
||||
// workaround for Fennec bug https://bugzilla.mozilla.org/show_bug.cgi?format=multiple&id=648250 window.(outerHeight|outerWidth|screenX|screenY) throw exception
|
||||
try {
|
||||
if (is_mozilla) return window.outerWidth;
|
||||
}
|
||||
else
|
||||
{
|
||||
catch (e) {}
|
||||
|
||||
return egw_getWindowInnerWidth();
|
||||
}
|
||||
}
|
||||
|
||||
// get the outerHeight of the browser window. For IE we simply return the innerHeight
|
||||
function egw_getWindowOuterHeight()
|
||||
{
|
||||
// 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;
|
||||
// workaround for Fennec bug https://bugzilla.mozilla.org/show_bug.cgi?format=multiple&id=648250 window.(outerHeight|outerWidth|screenX|screenY) throw exception
|
||||
try {
|
||||
if (is_mozilla) return window.outerHeight;
|
||||
}
|
||||
else
|
||||
{
|
||||
catch (e) {}
|
||||
|
||||
return egw_getWindowInnerHeight();
|
||||
}
|
||||
}
|
||||
|
||||
// ie selectbox dropdown menu hack. as ie is not able to resize dropdown menus from selectboxes, we
|
||||
|
Loading…
Reference in New Issue
Block a user