chore(panes): drop the leftover adoption diagnostics

A ~15-line console.info dumping computed styles, sizes, child counts and the
element's inline style on every single pop-out. It was instrumentation written
to chase the "panel comes home dead" bug, and it should have gone out with the
rest of the debugging — it survived the cleanup.

Removed rather than downgraded to console.debug: nothing here is worth keeping
even behind a flag. The failures it was built to diagnose are all handled and
commented now, and the paths that can still go wrong (window never loads, adopt
throws) already log a console.error that says what happened.

Signed-off-by: topkoa <topkoa@gmail.com>
This commit is contained in:
topkoa
2026-07-12 20:08:48 -04:00
parent 95d6d8a46e
commit 671aba950c
-21
View File
@@ -188,27 +188,6 @@
w.addEventListener('beforeunload', () => {
if (panes.isOpen(spec.id)) panes.close(spec.id);
});
// Measure LATE. The pane window has not laid out yet at this point (it is
// still being created and shown), so anything read now reports 0x0 whether
// or not there is a real problem.
setTimeout(() => {
if (w.closed || !el.isConnected) return;
const view = doc.defaultView;
const cs = view.getComputedStyle(el);
const rootCs = view.getComputedStyle(root);
console.info('[panes] adopted', spec.id,
'| el:', el.id || el.className,
'| size:', el.offsetWidth + 'x' + el.offsetHeight,
'| display:', cs.display, '| visibility:', cs.visibility, '| opacity:', cs.opacity,
'| position:', cs.position, '| w/h:', cs.width + '/' + cs.height,
'| children:', el.childElementCount,
'| hidden attr:', el.hasAttribute('hidden'),
'| inline style:', el.getAttribute('style') || '(none)',
'| root size:', root.offsetWidth + 'x' + root.offsetHeight, '/', rootCs.display,
'| window inner:', view.innerWidth + 'x' + view.innerHeight,
'| styles:', doc.querySelectorAll('link[rel="stylesheet"], style').length);
}, 400);
}
function place(spec, el) {