Nifty add element to scrollPanel

I believe you can only add one element to a scrollpanel, the element it’s supposed to scroll over and it needs to be a set height and width.

If you need to add more than one element, add a panel and add your elements to that.

If you add the panel in code, add it to #nifty-scrollpanel-child-root.

You can update the height/width that the scroll panel scrolls over later if needed (I use the setUp method).

1 Like