Skip to content

Smart Scrollbars#2922

Merged
hecrj merged 2 commits intomasterfrom
feature/smart-embedded-scrollbar
May 3, 2025
Merged

Smart Scrollbars#2922
hecrj merged 2 commits intomasterfrom
feature/smart-embedded-scrollbar

Conversation

@hecrj
Copy link
Member

@hecrj hecrj commented May 3, 2025

This PR makes embedded scrollbars in a scrollable (i.e. when using spacing) only appear and take up space when needed.

We avoid constantly relayouting twice by remembering the scrollbar "status quo" and only recalculating if the content has grown longer or shorter enough to change it. Chains of status quo changes should be very rare; therefore layout can still be considered single-pass.

@hecrj hecrj added feature New feature or request widget layout addition labels May 3, 2025
@hecrj hecrj added this to the 0.14 milestone May 3, 2025
This should optimize the worst layout case—when
scrollables with a lot of content are first shown.
@hecrj hecrj enabled auto-merge May 3, 2025 02:32
@hecrj hecrj merged commit 9b710a9 into master May 3, 2025
30 checks passed
@hecrj hecrj deleted the feature/smart-embedded-scrollbar branch May 3, 2025 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant