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
{{ message }}
Repository navigation
[Bug]cusor deviate when scale modefied by document.body.style.zoom #12645
Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.
In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.
If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical questions.
If you are interested in the project, you may also subscribe our mail list.
It seems to be a bug, but css zoom is a non-standard property and many browsers have a poor compatibility for css zoom (especially in Firefox). Is it necessary to fix?
Instead, we can use document.body.style.transform = 'scale(1.25)' to resolve this requirement, which is working well.(Can I Use: CSS Transform)
For IE or other browsers compatibilities, we can add browser prefix for it.
Yes. This is a difference between zoom and scale. scale won't change the layout and element holds the same raw size after scaling, but zoom will change real size of an element and it will bring a re-rendering of the whole layout. That seems unexpected.
Activity
echarts-bot commentedon May 15, 2020
Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.
In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.
If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical questions.
If you are interested in the project, you may also subscribe our mail list.
Have a nice day! 🍵
plainheart commentedon May 15, 2020
It seems to be a bug, but css zoom is a non-standard property and many browsers have a poor compatibility for css zoom (especially in Firefox). Is it necessary to fix?
Instead, we can use
document.body.style.transform = 'scale(1.25)'to resolve this requirement, which is working well.(Can I Use: CSS Transform)For IE or other browsers compatibilities, we can add browser prefix for it.
or just add a class for
bodyserfend commentedon May 16, 2020
i'd try set transform:

document.body.style.transform = 'scale(1.25)', but it seems not work correctly.whole page zoom just out of browser.
plainheart commentedon May 17, 2020
Yes. This is a difference between
zoomandscale.scalewon't change the layout and element holds the same raw size after scaling, butzoomwill change real size of an element and it will bring a re-rendering of the whole layout. That seems unexpected.