Skip to content

Commit 29a4624

Browse files
author
DIYgod
authored
Merge pull request DIYgod#178 from MPierre9/add-music-fix
Add Music Fix, resolves issue DIYgod#177
2 parents b654f6c + 81002c0 commit 29a4624

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

dist/APlayer.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/APlayer.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/APlayer.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -940,10 +940,9 @@ class APlayer {
940940
this.element.classList.add('aplayer-withlist');
941941
this.audio.loop = false;
942942
}
943-
944-
list.style.height = 'auto';
945-
list.style.height = list.offsetHeight + 'px';
946-
943+
var songListLength = listEle.getElementsByTagName('li').length;
944+
list.style.height = (songListLength * 33) + 'px';
945+
947946
this.getRandomOrder();
948947
}
949948
}

0 commit comments

Comments
 (0)