From 312e083fc010233e34b3dfc2a2906eba813877f9 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 2 Jun 2020 23:41:03 +0300 Subject: [PATCH] Dropdown.js: remove variable used only once (#2779) Co-authored-by: REJack --- build/js/Dropdown.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/js/Dropdown.js b/build/js/Dropdown.js index 245b9cd2c..563ebfe6b 100644 --- a/build/js/Dropdown.js +++ b/build/js/Dropdown.js @@ -69,8 +69,7 @@ class Dropdown { const offset = $element.offset() const width = $element.width() - const windowWidth = $(window).width() - const visiblePart = windowWidth - offset.left + const visiblePart = $(window).width() - offset.left if (offset.left < 0) { $element.css('left', 'inherit')