question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FixHeader Not Aligned

See original GitHub issue

capture

 var ic = this;
    ic.dtInstance = {};
    ic.dtOptions = DTOptionsBuilder.fromFnPromise(function () {
        return ReportingService.getImports();
    }).withBootstrap().withFixedHeader({
        bottom: true
    }).withDataProp('data').withDOM('frtilp').withButtons(['colvis',
           'copy',
           'print',
           'csv']).withDisplayLength(100).withOption('lengthMenu', [[100, 250, 375, 500, 750, 20000], [100, 250, 375, 500, 750, "All"]]);

Why is the fixed header not aligned?

In addition the fixed header only shows after I navagate to page 2 instead of being applied on page one. Once I visit page two it works.

Finally, not a big issue but in the picture above it shows that the fixed header is there even though I didn’t yet scroll down enough for it to activate.

capture

It also seems like the more pages I navigate though the larger and weirder the fixedheader becomes.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Ya-Wangcommented, Sep 2, 2016

capture

Attached image shows still unaligned columns. Interesting note is that the style says it should be the right width then in the real width it’s higher. Futhermore 508px is actually a perfect width for the fixed header not sure why 63 px is getting added to it.

capture

Also seems to subtract from width in style as well?

0reactions
l-lincommented, Sep 27, 2016

Can you modify the above pen to reproduce your issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

fixedheader-floating not align with table content datatable on ...
Description of problem: On windows y scrolling, the fixedheader-floating created is not normally align with the table content, sometimes is ...
Read more >
Jquery Data table Fixed Header Not aligned - Stack Overflow
Before adding the fixed header, everything was aligned. Im wondering if anyone hasd experienced this and if so, how did you work around...
Read more >
Fix header table with border is not aligned · Issue #222 - GitHub
However when I add table border (table-bordered) style, the border appears but it is not aligned between the fix header and the body....
Read more >
iggrid fixed header not aligned with row data - Infragistics
Hi,. I am setting height of iggrid to set fixed header with vertical scrolling, it is fixed the header, but its not aligned...
Read more >
Fix header not left aligned with row contents on vulnerability ...
Fix header not left aligned with row contents on vulnerability table ... table heading labels are not left aligning to the content below: ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found