2025-08-13 11:50 PM
I have made a dynamic menu made with a listLayout with a number of buttons inside a scrollableContainer. When a user push the buttons the listLayout is updated with new content.
I have not been able to have the scrollbar reflect the size of the listLayout after the listLayout is updated. The scrollbar will only update when the user starts scrolling through the new content. Until then it reflect the precious size of the listLayout.
I have tried:
scrollableContainer1.doScroll(0, 180);
Thinking it would have the same effect as the user scrolling the scrollableContainer, but it does not work.
Is there a way to force update of the scrollbar?