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:
File diff suppressed because one or more lines are too long
@@ -245,6 +245,9 @@ import {
|
|||||||
if (!inst.handle) {
|
if (!inst.handle) {
|
||||||
inst.handle = createHandle(inst);
|
inst.handle = createHandle(inst);
|
||||||
document.body.appendChild(inst.handle);
|
document.body.appendChild(inst.handle);
|
||||||
|
// 首次创建即定位(side/offsetX/zIndex)——漏掉会使 fixed 把手失去
|
||||||
|
// 水平定位而跑向左侧(v1 同位有此调用;2026-09-23 服务器实测发现)。
|
||||||
|
applyWrapperBox(inst);
|
||||||
}
|
}
|
||||||
inst.handle.style.display = 'flex';
|
inst.handle.style.display = 'flex';
|
||||||
if (persist !== false) writeCollapsed(inst.config.slot, true);
|
if (persist !== false) writeCollapsed(inst.config.slot, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user