Fix eslint
| @@ -480,8 +480,7 @@ export function dragElement($elmnt) { | |||
| 480 | 480 | ||
| 481 | let pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; | 481 | let pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; |
| 482 | let height, width, top, left, right, bottom, | 482 | let height, width, top, left, right, bottom, |
| 483 | maxX, maxY, winHeight, winWidth, | 483 | maxX, maxY, winHeight, winWidth; |
| 484 | topbar; | ||
| 485 | 484 | ||
| 486 | const elmntName = $elmnt.attr('id'); | 485 | const elmntName = $elmnt.attr('id'); |
| 487 | const elmntNameEscaped = $.escapeSelector(elmntName); | 486 | const elmntNameEscaped = $.escapeSelector(elmntName); |
| @@ -540,11 +539,6 @@ export function dragElement($elmnt) { | |||
| 540 | winWidth = window.innerWidth; | 539 | winWidth = window.innerWidth; |
| 541 | winHeight = window.innerHeight; | 540 | winHeight = window.innerHeight; |
| 542 | 541 | ||
| 543 | topbar = document.getElementById('top-bar'); | ||
| 544 | const topbarstyle = getComputedStyle(topbar); | ||
| 545 | topBarFirstX = parseInt(topbarstyle.marginInline); | ||
| 546 | topBarLastY = parseInt(topbarstyle.height); | ||
| 547 | |||
| 548 | // Prepare state object if missing | 542 | // Prepare state object if missing |
| 549 | if (!power_user.movingUIState[elmntName]) power_user.movingUIState[elmntName] = {}; | 543 | if (!power_user.movingUIState[elmntName]) power_user.movingUIState[elmntName] = {}; |
| 550 | 544 | ||