You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/06/14 07:33:30 UTC
[GitHub] [echarts] sheepzheng edited a comment on issue #15103: browser zoom and dom zoom will cause mouse position fault in tooltip
sheepzheng edited a comment on issue #15103:
URL: https://github.com/apache/echarts/issues/15103#issuecomment-859461384
I fixed this problem by setting body transform.
In script add:
```
var ratioX = window.innerWidth / 1920;//dev screensize echarts instance
document.body.style.width = '1920px';//dev screensize echarts instance
document.body.style.height = '1080px';//dev screensize echarts instance
document.body.style.transform = `scale(${ratioX},${ratioX})`;
document.body.style.transformOrigin = `0 0`;
```
then tooltip works right with browser zoom and different sizes of screen
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org