mirror of https://github.com/ColorlibHQ/AdminLTE
Dropdown.js: remove variable used only once (#2779)
Co-authored-by: REJack <info@rejack.de>pull/2783/head
parent
85d4b6be05
commit
312e083fc0
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue