Skip to content

feat(widgets): support contentBoundsPadding in ScrollbarWidget - #10542

Merged
Pessimistress merged 5 commits into
masterfrom
x/max-bounds-padding-2
Aug 10, 2026
Merged

Pessimistress merged 5 commits into
masterfrom
x/max-bounds-padding-2

Conversation

@Pessimistress

Copy link
Copy Markdown
Collaborator

Change List

  • ScrollbarWidget
  • Doc
  • tests


#### contentBoundsPadding (object, optional)

Padding inside the viewport used to display `contentBounds`, in the shape of `{left, right, top, bottom}`. Values use the same pixel, percentage, and CSS-style expression syntax as [`maxBoundsPadding`](../core/controller.md#options). If not supplied, falls back to `maxBoundsPadding` of the target view's controller.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have appreciated a reminder of what the content bounds do in terms of how they affect the scrollbar, maybe here or maybe linked?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's documented right above this paragraph

@coveralls

coveralls commented Aug 10, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 84.082% (+0.005%) from 84.077% — x/max-bounds-padding-2 into master

Base automatically changed from x/max-bounds-padding to master August 10, 2026 19:21
@Pessimistress
Pessimistress merged commit 5e06ba0 into master Aug 10, 2026
5 checks passed
@Pessimistress
Pessimistress deleted the x/max-bounds-padding-2 branch August 10, 2026 19:59
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.

3 participants