public/javascripts/yui/carousel/carousel-debug.js
function getDimensions(el, which) {
        switch (which) {
        case 'height':
            return  getStyle(el, "marginTop")        +
                    getStyle(el, "marginBottom")     +
                    getStyle(el, "paddingTop")       +
                    getStyle(el, "paddingBottom")    +
                    getStyle(el, "borderTopWidth")   +
                    getStyle(el, "borderBottomWidth");
        case 'width':
            return   getStyle(el, "marginLeft")      +
                     getStyle(el, "marginRight")     +
                     getStyle(el, "paddingLeft")     +
                     getStyle(el, "paddingRight")    +
                     getStyle(el, "borderLeftWidth") +
                     getStyle(el, "borderRightWidth");
        default:
            break;
        }

        return getStyle(el, which);
    }
function getDimensions(el, which) {
        switch (which) {
        case 'height':
            return  getStyle(el, "marginTop")        +
                    getStyle(el, "marginBottom")     +
                    getStyle(el, "paddingTop")       +
                    getStyle(el, "paddingBottom")    +
                    getStyle(el, "borderTopWidth")   +
                    getStyle(el, "borderBottomWidth");
        case 'width':
            return   getStyle(el, "marginLeft")      +
                     getStyle(el, "marginRight")     +
                     getStyle(el, "paddingLeft")     +
                     getStyle(el, "paddingRight")    +
                     getStyle(el, "borderLeftWidth") +
                     getStyle(el, "borderRightWidth");
        default:
            break;
        }

        return getStyle(el, which);
    }
function getDimensions ( el , which ) { switch ( which ) { case 'height' : return getStyle ( el , "marginTop" ) + getStyle ( el , "marginBottom" ) + getStyle ( el , "paddingTop" ) + getStyle ( el , "paddingBottom" ) + getStyle ( el , "borderTopWidth" ) + getStyle ( el , "borderBottomWidth" ) ; case 'width' : return getStyle ( el , "marginLeft" ) + getStyle ( el , "marginRight" ) + getStyle ( el , "paddingLeft" ) + getStyle ( el , "paddingRight" ) + getStyle ( el , "borderLeftWidth" ) + getStyle ( el , "borderRightWidth" ) ; default : break ; } return getStyle ( el , which ) ; }
Get full dimensions of an element.

@method getDimensions
@param {Object} el The element to get the dimensions of
@param {String} which Get the height or width of an element
@private
Get full dimensions of an element .