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.

Wrong header items width

See original GitHub issue

The table header’s width is not calculated the same way as the table’s body, ending up in situations like this (note the header overflowing on the right):

capture d ecran 2016-10-19 08 50 07

[Edit: actually it happens even without this, see below] It happened because the bar on the left appears after a transition, and the whole layout re-rendered accordingly but the header did not.

[Edit: just missing CSS files] Also probably related: the width of a menu item is calculated before the sorting arrows are placed, which can produce this:

image

I could solve this by setting the width property, but I don’t want fixed with, and no minWidth prop is available.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:28 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
jdelafoncommented, Oct 19, 2016

Indeed, thanks, it works now. I naively thought npm would do that, but I had to add it to the webpack config entry points.

0reactions
AllenFangcommented, Jan 25, 2017

thanks for feedback 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Header widths don't match item widths with static headers
I have the MasterTable layout set to "Fixed", and have all of the column widths specified, header and item. The column widths for...
Read more >
Full width header error - Stack Overflow
So I am coding a full width header tumblr theme and while everything's fine as far as the full width, as soon as...
Read more >
header width issue — DataTables forums
I have exactly the same problem. The first time I render the page every width in the header is set to 0px. Sorting...
Read more >
Bad width of head of longtable - TeX - LaTeX Stack Exchange
The obvious problem is that header columns are misaligned. $i$ should be above the numbers (first column) and $m_i$ should be above the...
Read more >
CSS Fixed Headers & Footers Tutorial - YouTube
Is your CSS Width 100% setting NOT working? This is a common problem with CSS position fixed headers and footers.
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