Skip to content

Commit

Permalink
Fixed JavaScript error on resize when not editing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromehode authored Aug 28, 2024
1 parent fa1f6a7 commit 834dc3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions system/workers/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 834dc3c

Please sign in to comment.