mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
theme: no need to resize flex sidebar #210
This commit is contained in:
parent
1bca218955
commit
fe67f0c630
1 changed files with 0 additions and 2 deletions
|
@ -278,12 +278,10 @@ function initArrowNav(){
|
||||||
|
|
||||||
function initMenuScrollbar(){
|
function initMenuScrollbar(){
|
||||||
var setMenuHeight = function (){
|
var setMenuHeight = function (){
|
||||||
$('#sidebar .highlightable').height($('#sidebar').innerHeight() - $('#header-wrapper').height() - 40);
|
|
||||||
ps && ps.update();
|
ps && ps.update();
|
||||||
};
|
};
|
||||||
|
|
||||||
var ps = new PerfectScrollbar('#sidebar .highlightable');
|
var ps = new PerfectScrollbar('#sidebar .highlightable');
|
||||||
setMenuHeight();
|
|
||||||
|
|
||||||
// to inform scrollbar of resizing
|
// to inform scrollbar of resizing
|
||||||
$(window).resize(function() {
|
$(window).resize(function() {
|
||||||
|
|
Loading…
Reference in a new issue