Add music fix
This commit is contained in:
parent
b654f6c6af
commit
9d772ef052
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue