Author: ralfbecker
New Revision: 35150
URL: http://www.egroupware.org/viewvc/egroupware?rev=35150&view=rev
Log:
nicer workaround
Modified:
trunk/phpgwapi/js/jsapi/jsapi.js
Modified: trunk/phpgwapi/js/jsapi/jsapi.js
URL: http://www.egroupware.org/viewvc/egroupware/trunk/phpgwapi/js/jsapi/jsapi.js?rev=35150&r1=35149&r2=35150&view=diff
— trunk/phpgwapi/js/jsapi/jsapi.js (original)
+++ trunk/phpgwapi/js/jsapi/jsapi.js Fri Jun 3 12:14:12 2011
@@ -403,30 +403,25 @@
// 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; - }
- else
- {
-
return window.screenLeft; - }
- // 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; - }
- 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; - }
- else
- {
-
//alert(window.screenTop); -
return window.screenTop-90; - }
- // 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; - }
- catch (e) {}
- return window.screenTop-90;
}
// get the outerWidth of the browser window. For IE we simply return the innerWidth
@@ -464,29 +459,25 @@
// 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; - }
- else
- {
-
return egw_getWindowInnerWidth(); - }
- // 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; - }
- 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; - }
- else
- {
-
return egw_getWindowInnerHeight(); - }
- // 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; - }
- catch (e) {}
- return egw_getWindowInnerHeight();
}
// ie selectbox dropdown menu hack. as ie is not able to resize dropdown menus from selectboxes, we
Simplify data backup and recovery for your virtual environment with vRanger.
Installation’s a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering’s about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs