You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2015/06/17 13:29:43 UTC

svn commit: r1685994 - /myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Author: lofwyr
Date: Wed Jun 17 11:29:43 2015
New Revision: 1685994

URL: http://svn.apache.org/r1685994
Log:
TOBAGO-1474: Wrong position of menu in IE11 - is not a problem here, but the deprecated code still exists (and will be fixed)

Modified:
    myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Modified: myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=1685994&r1=1685993&r2=1685994&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Wed Jun 17 11:29:43 2015
@@ -1319,26 +1319,28 @@ var Tobago = {
 
   /**
    * Returns the scroll-x value of the body element.
+   * @deprecated
    */
   getBrowserInnerLeft: function() {
     var innerLeft;
-    if (document.all) { // ie
-      innerLeft = document.body.scrollLeft;
-    } else {
+    if (window.scrollX) {
       innerLeft = window.scrollX;
+    } else {
+      innerLeft = document.body.scrollLeft;  // old IE
     }
     return innerLeft;
   },
 
   /**
    * Returns the scroll-y value of the body element.
+   * @deprecated
    */
   getBrowserInnerTop: function() {
     var innerTop;
-    if (document.all) { // ie
-      innerTop = document.body.scrollTop;
-    } else {
+    if (window.scrollY) {
       innerTop = window.scrollY;
+    } else {
+      innerTop = document.body.scrollTop;  // old IE
     }
     return innerTop;
   },