ui: Follow-up improvements to the scrollbar component (#38178)

This PR lands some more improvements to the reworked scrollbars.

Namely, we will now explicitly paint a background in cases where a track
is requested for the specific scrollbar, which prevents a flicker, and
also reserve space only if space actually needs to be reserved. The
latter was a regression introduced by the recent changes.

Release Notes:

- N/A
4a582504d4Finn Evers committed on 9/15/2025, 9:53:33 AM· committed by GitHubparentcfb2925
5 files changedLine totals unavailable