Giter Club home page Giter Club logo

Comments (17)

 avatar commented on July 21, 2024 1

I'm with you now. Thanks! This is the issue without a BS card.

I'll look into this before the next release of Scroller.

from scroller.

 avatar commented on July 21, 2024

It looks okay to me in Chrome Linux.

You are loading Bootstrap4 styling for DataTables core, but DataTables styling for Scroller, rather than the BS4 styling. Is that intentional? I'd suggest using the download builder to make sure you get all the files needed for whatever styling you choose.

from scroller.

EvilKraft avatar EvilKraft commented on July 21, 2024

I've used CDN links from https://datatables.net/download/

`

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"></script> <script type="text/javascript" src="https://cdn.datatables.net/v/bs4/jszip-2.5.0/dt-1.10.18/af-2.3.3/b-1.5.6/b-colvis-1.5.6/b-flash-1.5.6/b-html5-1.5.6/b-print-1.5.6/cr-1.5.0/fc-3.2.5/fh-3.1.4/kt-2.5.0/r-2.2.2/rg-1.1.0/rr-1.2.4/sc-2.0.0/sl-1.3.0/datatables.min.js"></script>`

The problem is still not solved.
https://jsfiddle.net/5upzckoy/

from scroller.

 avatar commented on July 21, 2024

2019-05-22-121841_918x304

from scroller.

 avatar commented on July 21, 2024

I'm not seeing the issue?

from scroller.

EvilKraft avatar EvilKraft commented on July 21, 2024

dt1

from scroller.

EvilKraft avatar EvilKraft commented on July 21, 2024

dt2

from scroller.

syfercv avatar syfercv commented on July 21, 2024

Is there anyway to go around this? I have the same problem even though my scrollY is the same height of the viewport and there is still plenty of space left.
image

from scroller.

 avatar commented on July 21, 2024

That looks like it might be a different issue. How have you set the height of the DataTables viewport?

from scroller.

syfercv avatar syfercv commented on July 21, 2024

The problem persists even if try with a large, more than necessary, manual value. I removed all custom CSS's that could be messing with the heigth.
image

from scroller.

syfercv avatar syfercv commented on July 21, 2024

Other example, only 3 rows, using 90vh. The white box that contains the table is not restricting the size. I tried to removed it, same outcome.
image
image

from scroller.

EvilKraft avatar EvilKraft commented on July 21, 2024

Hi.
Do you have any news about this issue?

from scroller.

 avatar commented on July 21, 2024

This issue will be updated when I've had a chance to look into it.

from scroller.

s-stewart avatar s-stewart commented on July 21, 2024

Hi,
Is there an update to this issue? Still seeing this with Scroller 2.0.5 and Datatables 1.11.3

Thank you

from scroller.

AllanJard avatar AllanJard commented on July 21, 2024

No sorry - I haven't looked into it yet. If anyone can spare some time to look at a fix for it, that would be most welcome otherwise I'll look at it when I can.

from scroller.

redfellow avatar redfellow commented on July 21, 2024

Still an issue. Could not find a workaround besides disabling scrollCollapse.

image

from scroller.

BiomanRouge avatar BiomanRouge commented on July 21, 2024

Hello,
When you fire the draw event, it's ok (try to order one column).
It seems this bug appears at the first draw only.

I know this code should be improved, but it works (scrollY to 50vh) :

... some config... ,
initComplete: function (settings) {
    // calculate the dataTables_scrollBody height
    let height = document.querySelector("div.dataTables_scrollBody").offsetHeight;
    // transform this px value to vh
    let vhHeight = (100 * height / window.innerHeight);
    
    // Get the scrollY value
    let maxVhHeight = settings.oScroll.sY;
    
    if (vhHeight < parseInt(maxVhHeight) && settings.iDraw === 1) {
        this.api().draw();
    }
}

If someone has a better idea, i'm interested in !

from scroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.