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.

Column Widths Won't Enlarge

See original GitHub issue

I have a rather simple React Table like ``` <ReactTable data={dataArray} columns={columns} />


Columns are not able to be enlarged when I click and drag, nothing happens.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
tannerlinsleycommented, Sep 10, 2019

There’s been some work on this, but it’s stalled because HTML tables don’t support manual width resizing when there are multiple-headers (col-span conflicts). Technically you can do this on your own in your Table component without any extra stuff from React Table. You could even implement this pattern: https://www.brainbell.com/javascript/making-resizable-table-js.html, but you won’t be able to use multiple headers.

We’ll keep working on a drop-in solution though. It might take some time. This shouldn’t discourage you from upgrading though. HTML tables are way better at automatic resizing that flexbox ever will be. With proper line breaks in your cell renderers when needed, you likely wouldn’t need resizing for most use cases (but there are a few where you would)

0reactions
Graveheartcommented, Sep 10, 2019

Thanks for the fast response, Tanner. It’s only for our big tables that we’re still using v6 but I’ll update them as well and try the solution you sent me since we aren’t using multiple headers anyway.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Column width won't adjust - Google Groups
Column width won't adjust · 1. Click "layout" besides "Table Design" · 2. Click "Cell Margins" · 3. the "Table Options" window will...
Read more >
Adjust the column size to see everything - Microsoft Support
Point to the separator to the right of the column that you want to widen. Point to separator. Drag the separator until the...
Read more >
Column Widths Won't Enlarge · Issue #1355 · TanStack/table
I have a rather simple React Table like ``` Columns are not able to be enlarged when I click and drag, nothing happens....
Read more >
How to change and AutoFit column width in Excel - Ablebits
Another way to autofit columns in Excel is by using the ribbon: select one or more columns, go to the Home tab >...
Read more >
Column width won't budge in Elementor's Tablet ... - YouTube
Toggling your tablet view to refine your responsive design, but the columns won't do what you tell them? If your columns won't change...
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