use ResizeObserver instead of set events on the connection window

This commit is contained in:
David Botton 2024-08-11 18:51:17 -04:00
parent 4c2fd7d8e3
commit d924cc437c

View file

@ -124,10 +124,13 @@
handler))) handler)))
(unless (equal resizeh "") (unless (equal resizeh "")
(push (format nil (push (format nil
" \(set-on-resize \(window \(connection-body panel\)\) " \(js-execute panel
\(lambda \(obj\) \(format nil \"new ResizeObserver\(\(\) => {
\(declare \(ignore obj\)\) ~~A.trigger\('resize'\);
\(jquery-trigger \(~A panel\) \"resize\"\)\)\)" }\).observe\(~~A\)\"
\(jquery \(~A panel\)\)
\(script-id \(~A panel\)\)\)\)"
vname
vname) vname)
creates)) creates))
(unless (equal handler "") (unless (equal handler "")