Add music fix

This commit is contained in:
Michael 2017-12-19 21:29:00 -05:00
parent b654f6c6af
commit 9d772ef052
3 changed files with 11 additions and 5 deletions

2
dist/APlayer.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -940,10 +940,16 @@ class APlayer {
this.element.classList.add('aplayer-withlist');
this.audio.loop = false;
}
var songListLength = listEle.getElementsByTagName('li').length;
list.style.height = 'auto';
list.style.height = list.offsetHeight + 'px';
if(list.classList.contains('aplayer-list-hide')) {
list.style.height = (songListLength * 32.75) + 'px';
}
else {
list.style.height = 'auto';
list.style.height = list.offsetHeight + 'px';
}
this.getRandomOrder();
}
}