Commit d584a884 authored by Gilles van den Hoven's avatar Gilles van den Hoven

$.getCSS (see bug #11)

parent 8ad487f2
......@@ -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;
......
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