I am having a view, where I can expand items.
Now I would like to check if the content fits in the parent container and enable or disable the scroller.
So far I can figure out if a view needs to be scrollable, by scrolling to the bottom and then to the top and checking if the maxScrollPosition changed.
But this only works once.
If I open a container and close it and then reopen it, the maxScrollPos will no longer change.
So I tried to reset the maxScrollPosition, but then the scroller sceem to be broken.
Is it possible to remove the scroller and add a new one?
Or simply reset the scroller (like put back the initialConfig)?
Or are there values like
view.getScrollable().getScroller().getContainerSize() > view.getContent()