Removed check for hidden list, allows add music animation

This commit is contained in:
Michael
2017-12-20 22:14:16 -05:00
parent e3ce22bf7d
commit 81002c0bf9
3 changed files with 3 additions and 10 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -8
View File
@@ -941,14 +941,7 @@ class APlayer {
this.audio.loop = false;
}
var songListLength = listEle.getElementsByTagName('li').length;
if(list.classList.contains('aplayer-list-hide')) {
list.style.height = (songListLength * 33) + 'px';
}
else {
list.style.height = 'auto';
list.style.height = list.offsetHeight + 'px';
}
list.style.height = (songListLength * 33) + 'px';
this.getRandomOrder();
}