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 2022/11/25 07:49:52 UTC

[GitHub] [echarts] hjmmc commented on issue #15103: browser zoom and dom zoom will cause mouse position fault in tooltip

hjmmc commented on issue #15103:
URL: https://github.com/apache/echarts/issues/15103#issuecomment-1327121831

   If you just fix the width, you can try this code, which is basically the same as the zoom effect
   ```js
   const app = document.getElementById('app')
   const ratioX = window.innerWidth / 1920
   app.style.width = '1920px'
   app.style.height = `${window.innerHeight / ratioX}px`
   app.style.transform = `scale(${ratioX},${ratioX})`
   app.style.transformOrigin = `0 0`
   ```


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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