Difficult to say without seeing some code…
Are you calling SetupScrolling() on the ScrolledPanel after you add stuff? Did you try to call Layout() - possibly inside a wx.CallAfter - for the sizer?
There’s a ton of things you can try but honestly I have no crystal ball to look into your code.