Viewport isHorizontalScrollBarShown

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.

Well you can get a pointer to the scrollbar, so just call isVisible() on it…

aah yes, that,s working just fine now. Sorry, I could have figured that our myself if I tried a bit harder …

:oops: