Used Fixed Columns and column rows are now not the same size

Used Fixed Columns and column rows are now not the same size

ztgadminztgadmin Posts: 11Questions: 4Answers: 1

I'm using fixed columns. However after all data has been rendered, the column that's fixed has a height that's different than the height of the rest of the columns. I tried to add tblObj.columns.adjust().draw(false) where tblObj is my data table object

Answers

  • ztgadminztgadmin Posts: 11Questions: 4Answers: 1

    The below code works but not sure why I have to add a dealy for the resize of the columns to work.

            tblObj.draw(false)
            //add delay
            setTimeout(
              function() 
              {
               tblObj.columns.adjust().draw(false)  
             }, 1);
    
  • allanallan Posts: 63,836Questions: 1Answers: 10,518 Site admin

    We'd need a link to the page showing the issue to be able to understand what is going wrong here.

    Thanks,
    Allan

This discussion has been closed.