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
+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
+9 -3
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();
}
}