On resize, Column Width Function only called with index: 0
See original GitHub issueSee: Sandbox
So I had this working yesterday but somehow broke it during a refactor. I’m building a replacement for Table & Column using MultiGrid. Because I have zebra striped rows, one requirement I have is to be able to add an invisible column to fill the remaining space. Upon resizing the window, the calculateColumnWidth
function passed to MultiGrid is only called for index zero. You can confirm this by looking at the logs, which look something like this:
Here is the behavior I had working yesterday:
I don’t really want to force update the grids every render, I feel as though changing the width prop should handle that for me.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Column Sizing - JavaScript Data Grid
Function. Sets columns to adjust in size to fit the grid horizontally. ... to further restrain the columns resulting width from that function...
Read more >Why is my HTML table not respecting my CSS column width?
The best way to set your column widths (td's) is to use a table header (th's). ... min-width:1020px; display: block; overflow: visible; z-index:...
Read more >column-width - CSS: Cascading Style Sheets - MDN Web Docs
The column-width CSS property sets the ideal column width in a multi-column layout. The container will have as many columns as can fit ......
Read more >How to change and AutoFit column width in Excel - Ablebits
On an Excel spreadsheet, you can set a column width of 0 to 255, ... the width of a column by using a...
Read more >Column Resizing in JavaScript (ES5) Grid control - Syncfusion
Column width can be resized by clicking and dragging the right edge of the column header. While dragging, the width of the respective...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In the end I’ve managed to make it working using “recomputeGridSize” at the AutoSizer event. Thanks!
I’ve moved on from that position and no longer have access to the code, but my solution waited 500 ms after the final browser resize event to call one of the force calculate methods on Multigrid
On Tue, Dec 18, 2018, 11:29 AM Marcelo Balloni <notifications@github.com wrote: