]> source.dussan.org Git - jquery.git/commitdiff
Changed border stuff to borderTopWidth (Ticket #9)
authorJohn Resig <jeresig@gmail.com>
Sun, 18 Jun 2006 01:23:08 +0000 (01:23 +0000)
committerJohn Resig <jeresig@gmail.com>
Sun, 18 Jun 2006 01:23:08 +0000 (01:23 +0000)
jquery/jquery.js

index 6ff825b9355f64d6709b925c582cdd54754e083b..b938b5b8a327e7529641a0d777c92c238e6aa6d4 100644 (file)
@@ -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;