How to set up a scroll pane properly
Posted: Mon Dec 18, 2017 3:29 pm
How do I set up a scroll pane to display a list that is somewhat long in player.gui.center?
This is what I did:
What happened, is that the list streched all the way through the top and the bottom of the screen and the scroll bar did not appear. How do I properly set it up so that it prevents my list from overflowing the screen?
This is what I did:
Code: Select all
player.gui.center.add({type = "frame",name = "popup",direction = "vertical"})
.add({type = "scroll-pane",name = "popup-scroll"}).add(list-setup)