Skip to content

Instantly share code, notes, and snippets.

@SupermanScott
Created March 22, 2010 17:48
Show Gist options
  • Save SupermanScott/340316 to your computer and use it in GitHub Desktop.
Save SupermanScott/340316 to your computer and use it in GitHub Desktop.
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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment