mirror of https://github.com/ColorlibHQ/AdminLTE
Rename variable for clarity (#2801)
parent
4a31f9986b
commit
39e9416f8c
|
@ -135,10 +135,10 @@ class ControlSidebar {
|
|||
|
||||
$(window).scroll(() => {
|
||||
const $body = $('body')
|
||||
const shouldClose = $body.hasClass(ClassName.CONTROL_SIDEBAR_OPEN) ||
|
||||
const shouldFixHeight = $body.hasClass(ClassName.CONTROL_SIDEBAR_OPEN) ||
|
||||
$body.hasClass(ClassName.CONTROL_SIDEBAR_SLIDE)
|
||||
|
||||
if (shouldClose) {
|
||||
if (shouldFixHeight) {
|
||||
this._fixScrollHeight()
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue