Skip to content
Permalink
Browse files
Changed border stuff to borderTopWidth (Ticket #9)
  • Loading branch information
jeresig committed Jun 18, 2006
1 parent d584a88 commit d143f76
Showing 1 changed file with 4 additions and 4 deletions.
@@ -355,13 +355,13 @@ $.getCSS = function(e,p) {
if ( p == 'height' || p == 'width' ) {

// Handle extra width/height provided by the W3C box model
var ph = !$.boxModel ? 0 :
var ph = (!$.boxModel ? 0 :
parseInt($.css(e,"paddingTop")) + parseInt($.css(e,"paddingBottom")) +
parseInt($.css(e,"borderTop")) + parseInt($.css(e,"borderBottom")) || 0;
parseInt($.css(e,"borderTopWidth")) + parseInt($.css(e,"borderBottomWidth"))) || 0;

var pw = !$.boxModel ? 0 :
var pw = (!$.boxModel ? 0 :
parseInt($.css(e,"paddingLeft")) + parseInt($.css(e,"paddingRight")) +
parseInt($.css(e,"borderLeft")) + parseInt($.css(e,"borderRight")) || 0;
parseInt($.css(e,"borderLeftWidth")) + parseInt($.css(e,"borderRightWidth"))) || 0;

var oHeight, oWidth;

0 comments on commit d143f76

Please sign in to comment.