mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[GH-ISSUE #388] Nested scrollbox content not clipped (inner scrollbox text overdraws outside container) #96
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#96
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @acoliver on GitHub (Dec 5, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/388
Summary
Nested scrollbox content isn’t clipped: an inner scrollbox’s text draws outside its border and into the outer scrollbox (and even into the header area in our app). Layout sizes/borders render correctly, but overflow clipping doesn’t apply.
Steps to Reproduce
scrollboxwith a fixed height (e.g., 15),border: true,overflow: "hidden",scrollY: true.scrollboxwith a fixed height (e.g., 8),border: true,overflow: "hidden",scrollY: true, containing 20+<text>lines.Expected
Inner scrollbox content is clipped to its viewport; no text is drawn outside its border or the outer scrollbox.
Actual
Inner scrollbox text overdraws past its border and bleeds into the outer scrollbox (and other UI). Clipping appears to be ignored for nested scrollboxes.
Notes
overflow: "hidden".@acoliver commented on GitHub (Dec 5, 2025):
textOverflow: 'truncate'in text #791