Commit d143f769 authored by John Resig's avatar John Resig

Changed border stuff to borderTopWidth (Ticket #9)

parent d584a884
...@@ -355,13 +355,13 @@ $.getCSS = function(e,p) { ...@@ -355,13 +355,13 @@ $.getCSS = function(e,p) {
if ( p == 'height' || p == 'width' ) { if ( p == 'height' || p == 'width' ) {
// Handle extra width/height provided by the W3C box model // 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,"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,"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; var oHeight, oWidth;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment