columns load in different size

columns load in different size

claudiogouveiaclaudiogouveia Posts: 3Questions: 1Answers: 0

when I move the scroll bar, is thus
http://oi62.tinypic.com/iq8zmr.jpg

but if I wiggle the screen resolution, getting back to normal
http://oi61.tinypic.com/29kywl5.jpg

my code

var fixedHeaders = [];
$('.table-fixed-header').each(function () {
fixedHeaders.push(
new FixedHeader(this, {
'offsetTop': 51,
'top': true
})
);
});

                    $(window).resize(function () {
                        for (var i = 0; i < fixedHeaders.length; i++) {
                            fixedHeaders[i]._fnUpdateClones(true); // force redraw
                            fixedHeaders[i]._fnUpdatePositions();
                        }
                    });

Answers

  • claudiogouveiaclaudiogouveia Posts: 3Questions: 1Answers: 0

    someone help please

  • ElfayerElfayer Posts: 26Questions: 4Answers: 0
    edited May 2014

    Are you putting your fixedHeader correctly in the fixedHeaders array ? Because I'm doing the same and it works fine:

    <code>

    $(window).resize(function () {
    ds.browse.fixedHeader._fnUpdateClones(true);
    ds.browse.fixedHeader._fnUpdatePositions();
    });

    ds.browse.fixedHeader = new FixedHeader(ds.browse.dataTable, {
    "offsetTop": 41,
    "zTop": 2
    });
    </code>

    Try to print console.debug(fixedHeaders[i]); in your loop.

  • claudiogouveiaclaudiogouveia Posts: 3Questions: 1Answers: 0

    as I implement in my code? I tried to enter inside the loop, but I could not, I guess I'm not seeing right code so already shifted ..

This discussion has been closed.