Files
image-workbench-desktop/plugins
qiqi f3c16803a3 fix(plugin): sticky 1.0.8 便利贴宽度变化后不算高度(文字下面多一行空白)
fitBody 的高度缓存只比 text/fontSize:宿主拖宽节点、侧栏开合、首帧 clientWidth=0
时都会沿用旧行数的高度,文字少一行时正好空出一整行;scrollHeight 的取整误差还会叠半行。
现在把 clientWidth 纳入缓存键、高度按「行高 × 整数行 + padding」对齐,并加 ResizeObserver。

源仓 iwb-plugins-desktop sticky/src/index.js + 契约测试 harness 两条新断言;
本仓 artifacts 由 scripts/sync-plugins-from-repo.js 生成(内容寻址 + SRI)。
2026-11-26 12:46:02 +08:00
..