Fix lint errors
This commit is contained in:
parent
fe14ab5b79
commit
18f08d3400
|
@ -18,7 +18,6 @@ import {
|
||||||
getAbsoluteTop,
|
getAbsoluteTop,
|
||||||
getInnerText,
|
getInnerText,
|
||||||
getType,
|
getType,
|
||||||
insideRect,
|
|
||||||
isUrl,
|
isUrl,
|
||||||
isValidColor,
|
isValidColor,
|
||||||
makeFieldTooltip,
|
makeFieldTooltip,
|
||||||
|
@ -306,7 +305,7 @@ export class Node {
|
||||||
const frame = this.editor.frame
|
const frame = this.editor.frame
|
||||||
this.dom.popupAnchor = createAbsoluteAnchor(button, frame, onDestroy, destroyOnMouseOut)
|
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 buttonRect = button.getBoundingClientRect()
|
||||||
const frameRect = frame.getBoundingClientRect()
|
const frameRect = frame.getBoundingClientRect()
|
||||||
const position = (frameRect.width - buttonRect.x > (popupWidth / 2 + 20))
|
const position = (frameRect.width - buttonRect.x > (popupWidth / 2 + 20))
|
||||||
|
|
|
@ -126,7 +126,7 @@ treemode._setOptions = function (options) {
|
||||||
if (VanillaPicker) {
|
if (VanillaPicker) {
|
||||||
// we'll render the color picker on top
|
// we'll render the color picker on top
|
||||||
// when there is not enough space below, and there is enough space above
|
// 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 top = parent.getBoundingClientRect().top
|
||||||
const windowHeight = window.innerHeight
|
const windowHeight = window.innerHeight
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue