$.getCSS (see bug #11)

This commit is contained in:
Gilles van den Hoven 2006-06-17 09:10:45 +00:00
parent 8ad487f219
commit d584a884b6

8
jquery/jquery.js vendored
View file

@ -357,17 +357,17 @@ $.getCSS = function(e,p) {
// Handle extra width/height provided by the W3C box model
var ph = !$.boxModel ? 0 :
parseInt($.css(e,"paddingTop")) + parseInt($.css(e,"paddingBottom")) +
parseInt($.css(e,"borderTop")) + parseInt($.css(e,"borderBottom"));
parseInt($.css(e,"borderTop")) + parseInt($.css(e,"borderBottom")) || 0;
var pw = !$.boxModel ? 0 :
parseInt($.css(e,"paddingLeft")) + parseInt($.css(e,"paddingRight")) +
parseInt($.css(e,"borderLeft")) + parseInt($.css(e,"borderRight"));
parseInt($.css(e,"borderLeft")) + parseInt($.css(e,"borderRight")) || 0;
var oHeight, oWidth;
if ($.css(e,"display") != 'none') {
oHeight = e.offsetHeight || parseInt(e.style.height,10);
oWidth = e.offsetWidth || parseInt(e.style.width,10);
oHeight = e.offsetHeight || parseInt(e.style.height,10) || 0;
oWidth = e.offsetWidth || parseInt(e.style.width,10) || 0;
} else {
var els = e.style;
var ov = els.visibility;