Dropdown.js: remove variable used only once (#2779)

Co-authored-by: REJack <info@rejack.de>
pull/2783/head
XhmikosR 2020-06-02 23:41:03 +03:00 committed by GitHub
parent 85d4b6be05
commit 312e083fc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -69,8 +69,7 @@ class Dropdown {
const offset = $element.offset() const offset = $element.offset()
const width = $element.width() const width = $element.width()
const windowWidth = $(window).width() const visiblePart = $(window).width() - offset.left
const visiblePart = windowWidth - offset.left
if (offset.left < 0) { if (offset.left < 0) {
$element.css('left', 'inherit') $element.css('left', 'inherit')