Issue with ScrollBar visibility

Hello guys !

I have an issue with the ScrollBar class. It can become visible even if I explicitely state I don’t want that with setVisible(false) because of line 198 in the juce_Scrollbar.cpp file if something changes its value :

setVisible ((! autohides) || (totalRange.getLength() > visibleRange.getLength() && visibleRange.getLength() > 0.0));

Is it normal behaviour ? Thanks in advance !

Hi @IvanC,

No that does not seem like normal behaviour. Does my commit (be9c776 - which will appear on develop shortly) fix the issue?

Fabian

1 Like

Hello @fabian !

Just tried your fix, it solved the issue I had, thanks a lot for this !