SIGN IN SIGN UP
bevyengine / bevy UNCLAIMED

A refreshingly simple data-driven game engine built in Rust

0 0 86 Rust

`bevy_ui_debug` scrollbars inset fix (#22343)

# Objective

`ComputedNode`'s `content_inset` field was changed to allocate space for
the scrollbars between the content and padding areas. The UI debug
overlay expects the `content_insets` to include that space and as a
result wrongly draws the scrollbars inset into the content box by their
width.

## Solution

Use `ComputedNode`'s `horizontal_scrollbar` and `vertical_scrollbar`
methods to position the debug overlay's scroll bar rects instead.

## Testing

```
cargo run --example scroll --features="bevy_ui_debug"
```

On main you should see a gap between the the vertical scrollbar and the
right edge of the node.
With this PR, the gap should be gone.
I
ickshonpe committed
453b1532878b2efb2a46b06f1d5d77d74353940b
Parent: 71ce303
Committed by GitHub <noreply@github.com> on 1/16/2026, 12:07:07 AM