Created
March 22, 2010 17:48
-
-
Save SupermanScott/340316 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/html/sites/all/modules/contrib/ctools/js/dimensions.js b/html/sites/all/modules/contrib/ctools/js/dimensions.js | |
index 433f6cc..f352753 100644 | |
--- a/html/sites/all/modules/contrib/ctools/js/dimensions.js | |
+++ b/html/sites/all/modules/contrib/ctools/js/dimensions.js | |
@@ -271,7 +271,7 @@ | |
} else | |
parent = parent.offsetParent; | |
- if (parent && (parent.tagName.toLowerCase() == 'body' || parent.tagName.toLowerCase() == 'html')) { | |
+ if (parent && (parent[0].tagName.toLowerCase() == 'body' || parent[0].tagName.toLowerCase() == 'html')) { | |
// Safari and IE Standards Mode doesn't add the body margin for elments positioned with static or relative | |
if (($.browser.safari || ($.browser.msie && $.boxModel)) && $.css(elem, 'position') != 'absolute') { | |
x += parseInt($.css(parent, 'marginLeft')) || 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment