From dd8cf411b2194bd6b0f311caab11480f45801116 Mon Sep 17 00:00:00 2001 From: Ni55aN Date: Sat, 23 Mar 2024 23:40:31 +0200 Subject: [PATCH] fix: resize of correct element --- src/node-view.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node-view.ts b/src/node-view.ts index 8931b76..53fcbfd 100644 --- a/src/node-view.ts +++ b/src/node-view.ts @@ -64,7 +64,7 @@ export class NodeView { if (!(await this.guards.resize({ size }))) return false - const el = this.element.children.item(0) + const el = this.element.querySelector('*:not(span)') if (!el || !(el instanceof HTMLElement)) return false