Alignment problem

Alignment problem

e.jourdee.jourde Posts: 22Questions: 8Answers: 0

Hello, I am having problems with the offset between the header and the corp of my tables. In the browser I found what is wrong and how to fix it (see image). The good value of width is "min-content". But I can't find where to change this value in the code.
I specify that I tried columns.adjust, etc ... I have had this problem for a while and I can't find.

Answers

  • e.jourdee.jourde Posts: 22Questions: 8Answers: 0

    I found the solution with this little function. But if you have another solution, I am interested.

    function adjust()
    {
        var fi=document.getElementsByClassName("dataTables_scroll");
        for(var i=0;i<fi.length;i++){
            fi[i].style.width="max-content";
        }
    }
    
Sign In or Register to comment.