Hey Neil, appreciate you getting back to me.
I've looked at the code and in SetXYScroll there's also a check for `if (horizontalScrollBarVisible &&`
So since the stock scrollbar is hidden, scrollWidth is not being updated by SetXYScroll, either.
I would really appreciate if you can consider some improvement which would allow apps with custom scrollbars to be able to know the correct scrollWidth.
I understand that for performance reasons you don't want to call SetScrollBars() on scrollWidth update when the horizontal scroll bar is not visible.
But is there any performance hit to just keeping scrollWidth property updated? From what I see in the code, it's possible to update scrollWidth, and then only call SetScrollbars() (or set tickWiden) if the scrollbar is actually visible.
Looks like the simplest solution to me. But maybe you have a better idea. I just want to fix our custom horizontal scrollbar :)
Thanks Neil