-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
autoSize doesn't work on Firefox #1601
Comments
It is likely that the default styles defined by the Firefox browser are different for the Here is an example: https://glitch.com/edit/#!/moored-daily-haumea It is good to specify the |
Lightweight Charts™ Version: 4.1.4
Steps/code to reproduce:
Actual behavior:
It doesn't show any chart and doesn't show any error log either in the Firefox Console. Everything is just blank.
It works on Chrome. I've noticed this after switching to Firefox as my primary browser. I'm using the latest Firefox (firefox-126.0-5.fc39.src.rpm)
Expected behavior:
For it to work I have to specify a fixed
height
(ordocument.body.clientHeight
) together withautoSize
, even specifyingwidth
along withautoSize
doesn't work, it just requiresheight
.If I initialize the chart as below it works:
var chart = LightweightCharts.createChart(document.body, { autoSize: true, height: 300 });
The text was updated successfully, but these errors were encountered: