Filtering problem

Filtering problem

bengalavizbengalaviz Posts: 6Questions: 0Answers: 0
edited September 2010 in General
Just recently found this tool and love it. My problem is with filtering. I have it working, but there is a problem with the css i think. Everytime when the key up event is run, the width of the TH tags in the TFOOT grow by 1 to 2 px. Have not been able to track down where this is coming from.

Replies

  • bengalavizbengalaviz Posts: 6Questions: 0Answers: 0
    edited September 2010
    I think I fixed the problem. I had to comment out some code to keep it from resizing. In the function _fnScrollDraw( o ) I had to comment out the following lines in section 4.

    [code]
    /* Finally set the width's of the header and footer tables */
    //nScrollHeadTable.style.width = _fnStringToCss( $(o.nTable).outerWidth() );
    //nScrollHeadInner.style.width = _fnStringToCss( $(o.nTable).outerWidth()+o.oScroll.iBarWidth );

    if ( o.nTFoot !== null )
    {
    var
    nScrollFootInner = o.nScrollFoot.getElementsByTagName('div')[0],
    nScrollFootTable = nScrollFootInner.getElementsByTagName('table')[0];

    //nScrollFootInner.style.width = _fnStringToCss( o.nTable.offsetWidth+o.oScroll.iBarWidth );
    //nScrollFootTable.style.width = _fnStringToCss( o.nTable.offsetWidth );
    }
    [/code]

    after doing this, the table does not resize anymore.
This discussion has been closed.