Skip to content

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

Closed
@ickshonpe

Description

@ickshonpe

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions