asidenav height adjust on resize
This commit is contained in:
parent
c18dbae6f9
commit
5695cbbed8
@ -88,6 +88,14 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
var mainEl = document.querySelector('.main__content');
|
||||
|
||||
asidenavEl.style.height = `${mainEl.clientHeight + 75}px`;
|
||||
// utils.aside(asidenavEl);
|
||||
|
||||
window.addEventListener('resize', function() {
|
||||
window.requestAnimationFrame(function() {
|
||||
asidenavEl.style.height = `${mainEl.clientHeight + 75}px`;
|
||||
});
|
||||
});
|
||||
|
||||
// TODO: make it swipeable on mobile and narrower
|
||||
// utils.aside(asidenavEl);
|
||||
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user