You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to make the background of the Scrollbar consistent with the width of the grabbed element #8895
Version 1.90.9, Branch: master (master/docking/etc.)
Back-ends:
imgui_impl_dx11.cpp + imgui_impl_dx11.cpp
Compiler, OS:
Windows10
Full config/build information:
No response
Details:
I want the background of the scroll bar to be consistent with the width of the grabbed element, but the grabbed element is always a little thinner than the background of the scroll bar
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
void SetGlobalScrollbarStyle()
{
if (!ImGui::GetCurrentContext()) {
return;
}
Activity
Scrollbar, Style: added style.ScrollbarPadding, ImGuiStyleVar_Scrollb…
ocornut commentedon Aug 20, 2025
This has been hardcoded until now.
I have just pushed a new
style.ScrollbarPaddingsetting to adjust it : 42656b3