Dynamic measurement not working
See original GitHub issueFirst of all thanks for great lib. I’m big fan of your OSS projects!
measureRef do noting in current implementation. If we looking into official example we can see that height of row came from hardcoded array value (${rows[virtualRow.index]}px) this behaviour isn’t look like “dynamic measurement”
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Dynamic measurement not working · Issue #23 · TanStack/virtual
measureRef measures the resulting dimensions of the element, then adjusts the position of it and all other elements based on that measurement.
Read more >Quick dynamic measuring stopped to work. - CAD Forum
In my drawing, the dynamic measuring of distances and radii under cursor stopped working. Question mark icon is displayed instead of the ...
Read more >SWITCH() Not Working Properly In Dynamic Measure
Solved: I have a working measure defined as such (note that [Forecast Volume] external measure is returning a result properly within the CALCULATE()...
Read more >Typing Line Length Doesn't Work, Dynamic Box Turns Red
The feet and inch symbols only work for specifying the length of a line, polyline, or other dimensions when using architectural type units....
Read more >Dynamic input does not work in AutoCAD
Solution: To solve the issue, do one or more of the following: Press F12 to attempt toggling Dynamic Input on and off. On...
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 Free
Top 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

measureRef measures the resulting dimensions of the element, then adjusts the position of it and all other elements based on that measurement. The actual width or height of the element are not (and shouldn’t be) dictated by react virtual, otherwise it wouldn’t be dynamic at all.
Here is a better example where the dimensions are “naturally” produced by the content of the row: https://codesandbox.io/s/determined-beaver-vi2rf?file=/src/index.js
@kimroen could you please clarify?
In the project we are working on we are not passing any value there and it works… and as per the related code-sandbox you can see it “works” without it,
when you say it’s required you mean that “strange behaviour may be observed if not provided” ?
I will investigate a bit on my own to check what the “default” value would be when not provided, just to understand why everything works even when not provided I guess