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/24 11:19:09 UTC
svn commit: r1687217 -
/myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Author: lofwyr
Date: Wed Jun 24 09:19:09 2015
New Revision: 1687217
URL: http://svn.apache.org/r1687217
Log:
TOBAGO-1474: Wrong position of menu in IE11
Modified:
myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Modified: myfaces/tobago/branches/tobago-1.0.x/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.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=1687217&r1=1687216&r2=1687217&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Wed Jun 24 09:19:09 2015
@@ -1677,10 +1677,10 @@ var Tobago = {
*/
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;
},
@@ -1690,10 +1690,10 @@ var Tobago = {
*/
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;
},