Skip to main content
Associate II
August 14, 2025
Question

force update of scrollbar in scrollableContainer

  • August 14, 2025
  • 11 replies
  • 1045 views

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?

11 replies

Explorer
February 6, 2026

Hi, 

The workaround with doScroll +1 and then -1 is not working working with every case. I am generating a ListLayout with 15 Rows. Those need to be scrolled. But when I change the current user which is only seeing 8 rows (those fit all in one screen) the scrollbar is still there as if I had still the 15 rows. 

But it is wokring everything fine when I am in for example the last row which I had to scroll to. If I change the user the scrollbar is changed like it should. In that case I don't need a scrollbar and it is not displayed. 

If I find a fix I will post it here.