bevy/release-content/migration-guides/overflowclipbox_default_is_now_paddingbox.md
ickshonpe 21b62d640b
Change the default visual box for OverflowClipMargin to PaddingBox (#18935)
# Objective

The default should be `OverflowClipBox::PaddingBox` not
`OverflowClipBox::ContentBox`

`padding-box` is the default in CSS. 

## Solution

Set the default to `PaddingBox`.

## Testing

Compare the `overflow` UI example on main vs with this PR. You should
see that on main the outline around the inner node gets clipped. With
this PR by default clipping starts at the inner edge of the border (the
`padding-box`) and the outlines are visible.

Fixes #18934
2025-04-30 21:00:42 +00:00

239 B

title pull_requests
OverflowClipBox's default is now Paddingbox
18935

The default variant for OverflowClipBox is now PaddingBox. The default value for OverflowClipMargin::visual_box is now OverflowClipBox::PaddingBox.