Updating container size in Nifty scrollpanel

The only idea I can think of is recreating the screen when you want to change the height, I’ve had similar issues with list boxes or something similar in the past