fix:修改渲染区坐标信息获取方式为dom

This commit is contained in:
liuhuajie
2024-11-14 18:47:40 +08:00
parent 402e686d87
commit 63b95b3607
3 changed files with 3 additions and 4 deletions

View File

@ -103,7 +103,7 @@ const adjustHeaderPosition = () => {
let left = 0;
// 获取最外层组件渲染区域的边界
const containerEl = targetContent.value;
const containerEl = document.getElementById('renderArea');
if (!containerEl) return;
const containerRect = containerEl.getBoundingClientRect();