ant-design svg foreignobject 内弹出popover在浏览器缩放时定位错误

8fsztsew  于 2022-10-23  发布在  其他
关注(0)|答案(2)|浏览(303)
  • I have searched the issues of this repository and believe that this is not a duplicate.

Steps to reproduce

放大/缩小浏览器缩放,popover定位错误

What is expected?

放大/缩小后popover依然定位准确

What is actually happening?

放大/缩小后popover偏移了

EnvironmentInfo
antd3.9.2
React16.6.1
Systemmac/windows
Browserchrome76
o75abkj4

o75abkj42#

测算了下,目前缩放后的popover left, top除于window.devicePixelRatio为期望的正确值

相关问题