How do I make panels have a different initial size?
Closed this issue · 1 comments
DuckyDoo11 commented
I'm trying to have a WebAmp widget that starts off with the Player and Playlist panel but no Equalizer by default. I figured out how to make the Equalizer go away, but I still need some way for the Playlist panel to fill up the empty vertical space.
If it helps, my current code as well (my personalizations excluded):
`
<div style="width:275px; height:350px;">
<div id="winamp-container-2" style="width:275px; height:350px;"></div>
<script>
const Winamp = window.Webamp;
// All configuration options are optional.
const webamp = new Webamp({
// Optional.
windowLayout: {
main: { position: { left: 0, top: 0 } }, size:[0,0],
playlist: {
position: { left: 0, top: 100 },
size: [0,0],
}
},
});
webamp.store.dispatch({ type: "CLOSE_WINDOW", windowId: "equalizer" });
webamp.renderWhenReady(document.getElementById('winamp-container-2'));
</script>
</div>
DuckyDoo11 commented
Nevermind, I figured out how to do this on my own, I just added the following:
__initialWindowLayout: { main: { position: { x: 0, y: 0 } }, playlist: { position: { x: 0, y: 116 }, size: [0, 4] }, },

