You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
viridia opened this issue
Nov 24, 2023
· 1 comment
· Fixed by #10730
Labels
A-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorD-TrivialNice and easy! A great choice to get started with Bevy
Argh so embarrassing to miss something stupid like this. I wrote a few implementations, a third party plugin, one for the border radius PR, and a few for experimental forks of 0.11 and 0.12 with lots of rendering changes, and only the one I upstreamed to Bevy has this bug. IIRC I just added some outlines to the borders example with offset and width set to 5 pixels, which worked of course, and assumed it was good 😓
# Objective
Resolves#10727.
`outline.width` was being assigned to `node.outline_offset` instead of
`outline.offset`.
## Solution
Changed `.width` to `.offset` in line 413.
# Objective
Resolves#10727.
`outline.width` was being assigned to `node.outline_offset` instead of
`outline.offset`.
## Solution
Changed `.width` to `.offset` in line 413.
A-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorD-TrivialNice and easy! A great choice to get started with Bevy
Bevy version
0.12.0
What you did
Setting
Outline.offset
has no effect - however settingOutline.width
affects both offset and outline.The 'outline_offset' appears to be using
outline.width
instead ofoutline.offset
. You can see the code here:bevy/crates/bevy_ui/src/layout/mod.rs
Line 412 in 1065028
What went wrong
Looks like a simple typo. It should be using '.offset' instead of '.width'.
The text was updated successfully, but these errors were encountered: