graflow: improved test pages
This commit is contained in:
@@ -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)
|
|
||||||
timer = setTimeout(() => {
|
|
||||||
const grfl = entry.target.querySelector('bz-graflow')
|
const grfl = entry.target.querySelector('bz-graflow')
|
||||||
grfl.autofit()
|
grfl.autofit()
|
||||||
}, 200)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
ro.observe(el)
|
ro.observe(el)
|
||||||
|
|||||||
Reference in New Issue
Block a user