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.

Columns resizing not working in 6.9.2

See original GitHub issue

Using v6?

v6 is now considered feature complete to its current abilities and limitations. We are not actively working to fix any issues for v6 any more. We will, however, merge any non-breaking pull requests submitted to fix anything in v6.

Using v7?

Thanks for using the alpha version of React Table v7! We’re very excited about it.

Describe the bug A clear and concise description of what the bug is.

I just upgraded from 6.8.6 to 6.9.2 four days ago. Yesterday I noticed that my column resizing wasn’t working. Further debugging showed these values in onResizedEvent { resized: { value: NaN}}. I reverted back to 6.8.6, and it worked again.

To Reproduce Steps to reproduce the behavior:

  1. using 6.9.2, resize a column
  2. review values of onResizedEvent, as described above.

Expected behavior columns to resize correctly

Codesandbox! Use a new react-table codesandbox to reproduce the issue.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS] Linux
  • Browser [e.g. chrome, safari] chrome
  • Version [e.g. 22] Version 72.0.3626.119

Smartphone (please complete the following information): N/A

Additional context N/A

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:14

github_iconTop GitHub Comments

9reactions
PatrikKoskenniemicommented, Apr 11, 2019

Hi Guys! I needed this version to work since there is a bug in 6.8.6 which doesn’t let me use pivotBy at the same time as a column is editable. So downgrading was not an option for me.

What I can see the reason for this behavior is that minResizeWidth is undefined when passed to a Math.max() which returns NaN.

So a workaround that works for me is to set minResizeWidth to a value for each column I need to resize.

Example: const columns = [ { id:“name”, Header: “Name”, accessor: “Name”, minResizeWidth: 150, }, { id:“email”, Header: “Email”, accessor: “Email”, minResizeWidth: 1, }, ];

9reactions
SourceCiphercommented, Mar 5, 2019

@dbertella How funny it is… I just fixed by doing the same thing like a min ago! The problem for us was that we had ^6.8.6 and by removing ^ to 6.8.6 solved the problem!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Columns resizing not working in 6.9.2 · Issue #1281 - GitHub
Yesterday I noticed that my column resizing wasn't working. Further debugging showed these values in onResizedEvent { resized: { value: NaN}} .
Read more >
116369 – cannot resize columns in table
I created a table in page using palette Basic\Table, DnD a DB table from Services, remove some columns. When I am trying to...
Read more >
Resize a table, column, or row - Microsoft Support
On the Layout tab, in the Cell Size group, click in the Table Column Width box, and then specify the options you want....
Read more >
react-table - npm
Accessors are functions that return the value to populate the row's value for the column. This lets the render function not have to...
Read more >
Column width won't adjust - Google Groups
1. Disable auto resizing (Options... on the Table tab). · 2. Disable any exact width for the entire table. · 3. Clear any...
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