diff --git a/src/js/Node.js b/src/js/Node.js index 1db0a25..8e780f6 100644 --- a/src/js/Node.js +++ b/src/js/Node.js @@ -18,7 +18,6 @@ import { getAbsoluteTop, getInnerText, getType, - insideRect, isUrl, isValidColor, makeFieldTooltip, @@ -306,7 +305,7 @@ export class Node { const frame = this.editor.frame this.dom.popupAnchor = createAbsoluteAnchor(button, frame, onDestroy, destroyOnMouseOut) - const popupWidth = 200; // must correspond to what's configured in the CSS + const popupWidth = 200 // must correspond to what's configured in the CSS const buttonRect = button.getBoundingClientRect() const frameRect = frame.getBoundingClientRect() const position = (frameRect.width - buttonRect.x > (popupWidth / 2 + 20)) diff --git a/src/js/treemode.js b/src/js/treemode.js index e838703..3435233 100644 --- a/src/js/treemode.js +++ b/src/js/treemode.js @@ -126,7 +126,7 @@ treemode._setOptions = function (options) { if (VanillaPicker) { // we'll render the color picker on top // when there is not enough space below, and there is enough space above - const pickerHeight = 300; // estimated height of the color picker + const pickerHeight = 300 // estimated height of the color picker const top = parent.getBoundingClientRect().top const windowHeight = window.innerHeight