scottschiller / SoundManager2

A JavaScript Sound API supporting MP3, MPEG4 and HTML5 audio + RTMP, providing reliable cross-browser/platform audio control in as little as 12 KB. BSD licensed.
http://www.schillmania.com/projects/soundmanager2/
Other
4.99k stars 768 forks source link

How to see ALL songs in SoundManager 2: Bar UI (so without vertical scrollbar) #233

Closed kdeneve closed 6 years ago

kdeneve commented 6 years ago

Hello Someone knows where I can change in the code the height of the player to see all mp3 songs at once? At the moment the maximum displayed songs is 4 with a vertical scrollbar at the right

Regards Kurt

scottschiller commented 6 years ago

This should be doable.

Try this, in the relevant CSS file:

.sm2-playlist-wrapper ul {
  max-height: initial;
}

(Or, just remove the max-height rule there entirely; the above just resets it.)

I think that should do it, and the animation will open / collapse the full height of the playlist. Alternately, you can try playing with the max-height values if you'd like to see more, but still have a scrollbar at some point. I recommend opening the playlist, then editing that value until it lines up nicely with the number of items you want.

kdeneve commented 6 years ago

Hello, Thank you very much for your help. I used the css code you mentioned as an overrule and it works! I don't understand that I over looked this one :-)

Regards Kurt