Skip to content

The default for OverflowClipMargin's visual box should be PaddingBox not ContentBox #18934

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Open
ickshonpe opened this issue Apr 25, 2025 · 0 comments · May be fixed by #18935
Open

The default for OverflowClipMargin's visual box should be PaddingBox not ContentBox #18934

ickshonpe opened this issue Apr 25, 2025 · 0 comments · May be fixed by #18935
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior

Comments

@ickshonpe
Copy link
Contributor

ickshonpe commented Apr 25, 2025

Bevy version

0.16

What you did

You can see the issue in the overflow UI example, hover the clipped nodes and the outline is clipped even though it is inside the node's border.

Solution

Change the default to PaddingBox (which is the default in CSS).

@ickshonpe ickshonpe added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Apr 25, 2025
@ickshonpe ickshonpe changed the title Default for OverflowClipMargin's visual box should be BorderBox not ContentBox Default for OverflowClipMargin's visual box should be PaddingBox not ContentBox Apr 25, 2025
@ickshonpe ickshonpe changed the title Default for OverflowClipMargin's visual box should be PaddingBox not ContentBox The default for OverflowClipMargin's visual box should be PaddingBox not ContentBox Apr 25, 2025
@ickshonpe ickshonpe added A-UI Graphical user interfaces, styles, layouts, and widgets and removed S-Needs-Triage This issue needs to be labelled labels Apr 25, 2025
No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant