-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Resizing chart applies only every 2 pixels #1746
Comments
This behavior is expected because we need to ensure that the canvas elements on the page have a rounded width instead of a partial pixel (such as The library does not provide an option to change this behavior. |
hi yea , in library it was rounding to even numbers,, I modified to just Math.round and build it .. its working 99% smooth like original TV now. Can I know the reason why its rounded to even like 92,94 instead of 91,92,93 .. like how origianl Tv does. |
To be exact this is the code that rounds to even
|
We want to ensure that the dimension is not larger than the I know that using The time spent by the user resizing windows (or panels) is typically very small in comparison to a static size. The browser rendering issues that we are working around may not be an issue any more in newer browser versions so we could re-investigate this and adjust this behaviour. |
Yea I can understand that , but how come original tradingview incrementing / decrementing its divs / canvas etc pixels by 1 , but LWC is doing it by 2. |
Hi , when I set height and weight of chart using following function
only when its value is even number its resizing , how to change this behaviour to 1 pixels or lower.
The text was updated successfully, but these errors were encountered: