You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#991
1. We couldn't rely on the state while updating the state without a proper verifying that the state is correct.
Thus if we change width/barSpacing/rightOffset we have to mark visible
range as invalidated to make sure that it will be updated on getting current logical/visible range.
2. To fix left edge to could rely on logical range rather than strict range.
Visible range is a range of edges of a bar, not the middle.
Lightweight Charts Version: 3.7.0
Steps/code to reproduce:
lockVisibleTimeRangeOnResize does not work as expected when
See https://codesandbox.io/s/bold-wave-xcpb7?file=/index.html for code.
Create chart with these time scale options:
Listen for resize events:
Resize the window.
Actual behavior:
The visible range is changed after resizing the chart.
Expected behavior:
The visible range should not be changed after resizing the chart.
Screenshots:
CodeSandbox/JSFiddle/etc link:
https://codesandbox.io/s/bold-wave-xcpb7?file=/index.html
The text was updated successfully, but these errors were encountered: