Skip to content

Fix scrollbar and scroll panel padding not scaling with ui_scale#20

Merged
aweeri merged 2 commits intoaweeri:mainfrom
sandrwich:fix/scrollbar-scaling
Mar 15, 2026
Merged

Fix scrollbar and scroll panel padding not scaling with ui_scale#20
aweeri merged 2 commits intoaweeri:mainfrom
sandrwich:fix/scrollbar-scaling

Conversation

@sandrwich
Copy link
Copy Markdown
Contributor

Scrollbar width, slider size, arrow size, scroll speed, and list item height were using raygui's hardcoded defaults (12px, 16px, etc.) regardless of ui_scale. Set them scaled in the style setup.

Also fix scroll panel corner/edge padding in raygui which was hardcoded at 6px/2px. Derive scale from text size ratio since raygui has no dedicated scale property.

image image

Scrollbar width, slider size, arrow size, scroll speed, and list
item height were using raygui's hardcoded defaults (12px, 16px,
etc.) regardless of ui_scale. Set them scaled in the style setup.

Also fix scroll panel corner/edge padding in raygui which was
hardcoded at 6px/2px. Derive scale from text size ratio since
raygui has no dedicated scale property.
The corner between both scrollbars was drawn with TEXT color
which didn't match the scrollbar track, causing a visible
white square artifact. Panel background already covers the
area so the extra draw is unnecessary.
@aweeri aweeri merged commit ef42ed4 into aweeri:main Mar 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants