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 31597b7
Showing 1 changed file with 2 additions and 3 deletions.
@@ -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.