Dispatch resize event if sidebar collapsed
This commit is contained in:
parent
6c60298e8f
commit
1774987dea
@ -60,7 +60,12 @@
|
|||||||
$(this).removeClass('hold-transition');
|
$(this).removeClass('hold-transition');
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
$("body").addClass('sidebar-collapse');
|
$("body")
|
||||||
|
.addClass('sidebar-collapse')
|
||||||
|
.delay(500).queue(function () {
|
||||||
|
window.dispatchEvent(new Event('resize'));
|
||||||
|
$(this).dequeue();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user