Skip to content

Conversation

@acoliver
Copy link
Contributor

@acoliver acoliver commented Dec 5, 2025

Fixes #388.

Summary

  • intersect scissor rectangles when nesting ScrollBoxes to prevent children from drawing outside parents
  • remove extra padding on ScrollBox viewport to avoid bleed
  • add core and React regression tests covering nested scrollboxes and stacked tool blocks

Testing

  • bun test packages/core/src/tests/scrollbox.test.ts
  • bun test packages/react/tests/layout.test.tsx

@acoliver
Copy link
Contributor Author

acoliver commented Dec 5, 2025

before:

image

after:

image

you'll also find a test.

@kommander kommander merged commit 04ea4c0 into anomalyco:main Dec 8, 2025
4 checks passed
@acoliver acoliver deleted the feature/clip-fix branch December 8, 2025 21:55
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.

Nested scrollbox content not clipped (inner scrollbox text overdraws outside container)

2 participants