Skip to content
Permalink
Browse files

Adding a tweak to prevent layout breaks in the boxModel check on IE 6…

…. Fixes bug #4014.
  • Loading branch information
jeresig committed Feb 7, 2009
1 parent a894c60 commit 31597b7b3ce7737ead61eec55d9f66b9e9836cf7
Showing with 2 additions and 3 deletions.
  1. +2 −3 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';
});
})();

0 comments on commit 31597b7

Please sign in to comment.
You can’t perform that action at this time.