On a viewport, the scrollbars disappear when there is nothing to scroll, and that’s great but is there a way to find out if they are visible or not?
The isHorizontalScrollBarShown() method only returns if the scrollbar is enabled with setScrollBarsShown and not if it is actually visible.