graflow: improved test pages

This commit is contained in:
STEINNI
2026-03-09 19:32:27 +00:00
parent 080c919569
commit 0ed56594ff

View File

@@ -83,11 +83,8 @@
const el = document.querySelector('.container') const el = document.querySelector('.container')
let timer = null // debounce let timer = null // debounce
const ro = new ResizeObserver(([entry]) => { const ro = new ResizeObserver(([entry]) => {
clearTimeout(timer) const grfl = entry.target.querySelector('bz-graflow')
timer = setTimeout(() => { grfl.autofit()
const grfl = entry.target.querySelector('bz-graflow')
grfl.autofit()
}, 200)
}) })
ro.observe(el) ro.observe(el)