bevy/crates/bevy_ui
ickshonpe 5a09694dec Overflow::Hidden doesn't work correctly with scale_factor_override (#3854)
# Objective

Overflow::Hidden doesn't work correctly with scale_factor_override.
If you run the Bevy UI example with scale_factor_override 3 you'll see half clipped text around the edges of the scrolling listbox.
The problem seems to be that the corners of the node are transformed before the amount of clipping required is calculated. But then that transformed clip is compared to the original untransformed size of the node rect to see if it should be culled or not. With a higher scale factor the relative size of the untransformed node rect is going to be really big, so the overflow isn't culled.

# Solution

Multiply the size of the node rect by extracted_uinode.transform before the cull test.
2022-06-12 19:14:48 +00:00
..
src Overflow::Hidden doesn't work correctly with scale_factor_override (#3854) 2022-06-12 19:14:48 +00:00
Cargo.toml Enforce type safe usage of Handle::get (#4794) 2022-05-30 16:59:44 +00:00