public/javascripts/yui/datatable/datatable.js
function() {
    var elTbody = this._elTbody,
        elBdContainer = this._elBdContainer;
    
    // IE 6 and 7 only when y-scrolling not enabled
    if(!this.get("height") && (ua.ie)) {
        // Snap outer container height to content
        elBdContainer.style.height = 
                // but account for x-scrollbar if it is visible
                (elBdContainer.scrollWidth > elBdContainer.offsetWidth ) ?
                (elTbody.parentNode.offsetHeight + 18) + "px" : 
                elTbody.parentNode.offsetHeight + "px";
    }

    // Sync message tbody
    if(this._elTbody.rows.length === 0) {
        this._elMsgTbody.parentNode.style.width = this.getTheadEl().parentNode.offsetWidth + "px";
    }
    else {
        this._elMsgTbody.parentNode.style.width = "";
    }
}
function() {
    var elTbody = this._elTbody,
        elBdContainer = this._elBdContainer;
    
    // IE 6 and 7 only when y-scrolling not enabled
    if(!this.get("height") && (ua.ie)) {
        // Snap outer container height to content
        elBdContainer.style.height = 
                // but account for x-scrollbar if it is visible
                (elBdContainer.scrollWidth > elBdContainer.offsetWidth ) ?
                (elTbody.parentNode.offsetHeight + 18) + "px" : 
                elTbody.parentNode.offsetHeight + "px";
    }

    // Sync message tbody
    if(this._elTbody.rows.length === 0) {
        this._elMsgTbody.parentNode.style.width = this.getTheadEl().parentNode.offsetWidth + "px";
    }
    else {
        this._elMsgTbody.parentNode.style.width = "";
    }
}
function ( ) { var elTbody = this . _elTbody , elBdContainer = this . _elBdContainer ; // IE 6 and 7 only when y-scrolling not enabled if ( ! this . get ( "height" ) && ( ua . ie ) ) { // Snap outer container height to content elBdContainer . style . height = // but account for x-scrollbar if it is visible ( elBdContainer . scrollWidth > elBdContainer . offsetWidth ) ? ( elTbody . parentNode . offsetHeight + 18 ) + "px" : elTbody . parentNode . offsetHeight + "px" ; } // Sync message tbody if ( this . _elTbody . rows . length === 0 ) { this . _elMsgTbody . parentNode . style . width = this . getTheadEl ( ) . parentNode . offsetWidth + "px" ; } else { this . _elMsgTbody . parentNode . style . width = "" ; } }
Snaps container height for x-scrolling tables in IE. Syncs message TBODY width.

@method _syncScrollX
@private
Snaps container height for x - scrolling tables in IE . Syncs message TBODY width .