zh-lx / code-inspector

Click the dom on the page, it will open your IDE and position the cursor to the source code location of the dom.
https://inspector.fe-dev.cn/en
MIT License
1.52k stars 113 forks source link

bug: body 设置 transform 时,遮罩层位置不准确 #118

Closed zh-lx closed 4 months ago

zh-lx commented 4 months ago

提示:越详细的信息越有助于排查和解决问题,如果方便请加入本项目 README.md 最下面的 QQ 群或者微信群提供更详细的信息

Bug 类型

Bug 描述

当我的H5网页在PC上运行时,我给html设置了固定宽度, 因为页面会有position: fixed元素存在,为了让fixed元素宽度不相对于浏览器窗口,我给body设置了样式:transform: translate(0px, 0px); 但是这样就导致code inspector对元素的定位不准确 image

zh-lx commented 4 months ago

fixed in 8526275c,在 0.8.1-beta.2 版本中修复