aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-02-07 17:15:01 +0000
committerJohn Resig <jeresig@gmail.com>2009-02-07 17:15:01 +0000
commit31597b7b3ce7737ead61eec55d9f66b9e9836cf7 (patch)
tree12539629d040f820c4d2aecc0852ac2054c6a912 /src/support.js
parenta894c604895efb29e9b0937301cc404ad72e1738 (diff)
downloadjquery-31597b7b3ce7737ead61eec55d9f66b9e9836cf7.tar.gz
jquery-31597b7b3ce7737ead61eec55d9f66b9e9836cf7.zip
Adding a tweak to prevent layout breaks in the boxModel check on IE 6. Fixes bug #4014.
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/support.js b/src/support.js
index 6139395df..b11f84794 100644
--- a/src/support.js
+++ b/src/support.js
@@ -88,12 +88,11 @@
// document.body must exist before we can do this
jQuery(function(){
var div = document.createElement("div");
- div.style.width = "1px";
- div.style.paddingLeft = "1px";
+ div.style.width = div.style.paddingLeft = "1px";
document.body.appendChild( div );
jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
- document.body.removeChild( div );
+ document.body.removeChild( div ).style.display = 'none';
});
})();