From 834dc3c3ddcdc0def817bf935b40e34195b0dbf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Hod=C3=A9?= Date: Wed, 28 Aug 2024 11:34:33 +0200 Subject: [PATCH] Fixed JavaScript error on resize when not editing --- system/workers/edit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/system/workers/edit.js b/system/workers/edit.js index 1678c8d7..60354888 100644 --- a/system/workers/edit.js +++ b/system/workers/edit.js @@ -444,6 +444,7 @@ yellow.edit = { // Resize pane resizePane: function(paneId, paneAction, paneStatus) { + if(!document.getElementById(paneId)) return; var elementBar = document.getElementById("yellow-bar-content"); var paneLeft = yellow.toolbox.getOuterLeft(elementBar); var paneTop = yellow.toolbox.getOuterTop(elementBar) + yellow.toolbox.getOuterHeight(elementBar) + 10;