Wrong scroll Y size

Wrong scroll Y size

d_mercantid_mercanti Posts: 2Questions: 1Answers: 0

Using the scroller and the function
tb.row (idx) .scrollTo (true);
to move to the desired line, this does not work correctly in a mobile browser (Chrome-Android).

I think the problem is due to the incorrect calculation of the number of items per page.

Code snippet

var oTblReport = $("#GaraResult")
    oTblReport.DataTable ({
        destroy: true,
        "order" : [],
        "paging": true,
        "language": objLanguage,
        "data" : newArray,
        "lengthChange" : false,
        "pageLength": 15,
        "displayLength" : 15,
        "deferRender": true,
        "scrollY": "300px",
        "scroller": true,
        "scrollCollapse": true,

Answers

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin

    Can you link to a test case showing the problem so we can debug it please?

    Allan

  • d_mercantid_mercanti Posts: 2Questions: 1Answers: 0

    Yes.
    You can see the test case here: davidemercanti.altervista.org/API_FITRI_2/textCaseY.html

    Please click on the RUN TEST button.

    Even using windows7 and chrome I have the same problem if the page is open in a non-maximized browser

    this is the right positioning

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin

    Thanks! I’m using an iPad at the moment so I can’t diagnose this just yet, but as soon as I get back to my laptop I’ll debug it :)

    Allan

Sign In or Register to comment.