New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] timeScale
width is 0 after visiblity
change
#1407
Comments
Yes, I believe that this is expected behaviour (only check value after a timeout like requestAnimationFrame). However, it should be possible for the chart to know what the width of the timescale would be if it was visible (even if it is not) because the timescale width is the same as the pane width (chart width minus the price scale widths). |
@SlicedSilver thanks for explanations. I agree with:
|
I'm also running into an issue around this where I'm trying to render markers over a series and when I call |
@skdillon Would you say that your issue is the same as this one? |
Yup, bumping our patch version resolved the issue. Thanks for pointing that out @SlicedSilver |
Lightweight Charts™ Version: 4.0.1
timeScale.visible: false
.chart.applyOptions({ timescale: { visible: true } })
to make timescale visibleRepro on CodeSandbox
if calling the
.width()
method in a timeout it works, is this expected ?The text was updated successfully, but these errors were encountered: