fix(embed): collapsed handle positioned correctly on first creation (v2 parity with v1 applyWrapperBox call)

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-23 11:24:47 +08:00
parent 257643934a
commit 9761eea591
2 changed files with 4 additions and 1 deletions
File diff suppressed because one or more lines are too long
+3
View File
@@ -245,6 +245,9 @@ import {
if (!inst.handle) {
inst.handle = createHandle(inst);
document.body.appendChild(inst.handle);
// 首次创建即定位(side/offsetX/zIndex)——漏掉会使 fixed 把手失去
// 水平定位而跑向左侧(v1 同位有此调用;2026-09-23 服务器实测发现)。
applyWrapperBox(inst);
}
inst.handle.style.display = 'flex';
if (persist !== false) writeCollapsed(inst.config.slot, true);