If initially the content was shorter than the height, then the scrollbars are hidden (perfect), then update with longer content and the scrollbars shows (perfect). But the opposite is just not true.
Steps to Reproduce:
Set the height to be fixed (300px in my case), add content that is longer and the scrollbars will show. Then update the content to be less than the height.
Expected:
scrollbars to hide.
Actual:
scrollbars remain showing.
Attempts:
I tried to call the Update and mainLoop functions but nothing helps.
If initially the content was shorter than the height, then the scrollbars are hidden (perfect), then update with longer content and the scrollbars shows (perfect). But the opposite is just not true.
Steps to Reproduce: Set the height to be fixed (300px in my case), add content that is longer and the scrollbars will show. Then update the content to be less than the height.
Expected: scrollbars to hide.
Actual: scrollbars remain showing.
Attempts: I tried to call the Update and mainLoop functions but nothing helps.