From e5d5d0aa0634222470ba188b206de9fb3ad24e1b Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 19 May 2025 15:28:13 +0200 Subject: [PATCH] code editor: fix available globals for onResize --- src/client/ui/ui-code-editor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client/ui/ui-code-editor.js b/src/client/ui/ui-code-editor.js index 4c8dcabd..83dc0f5f 100644 --- a/src/client/ui/ui-code-editor.js +++ b/src/client/ui/ui-code-editor.js @@ -207,7 +207,11 @@ class CodeEditor { globals = this.widget.getProp('type') === 'canvas' ? {value: true, height: true, width: true, event: true} : {value: true, event: true, handle: true} + } else if (this.name === 'onResize') { + globals = {value: true, height: true, width: true, cssVars: true} } + + globals.locals = true globals.console = true globals.JS = true