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.

Dynamic measurement not working

See original GitHub issue

First 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:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
tannerlinsleycommented, May 13, 2020

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

0reactions
yuri-scarbaci-leniocommented, Dec 21, 2022

@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

Read more comments on GitHub >

github_iconTop 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 >

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