Closed samreid closed 3 years ago
Proposed fix is in the commit. As far as I can tell, this is working well in Fourier, CCK AC and Energy Skate Park and the Griddle demo. @jessegreenberg can you please review?
After double checking, I no longer think the correct needs a review, closing.
Related to https://github.com/phetsims/circuit-construction-kit-common/issues/600 and discovered in https://github.com/phetsims/fourier-making-waves/issues/8, the GridLine is giving the wrong results for the Fourier amplitude chart, and is off-center.
Running with this implementation of DiscreteAmplitudePanel:
We would like to see tick marks at -1.0, -0.5, 0.0, 0.5, 1.0, but instead GridNode gives:
with:
So the minPosition and maxPositions are wrong. I have a proposed fix for this which I will commit, then request a review from @jessegreenberg.