Fix lint errors

This commit is contained in:
jos 2019-09-11 16:16:05 +02:00
parent fe14ab5b79
commit 18f08d3400
2 changed files with 2 additions and 3 deletions

View File

@ -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))

View File

@ -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