Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clip outlines by the node's own clipping rect, not the parent's. #10922

Merged
merged 1 commit into from
Dec 10, 2023

Conversation

ickshonpe
Copy link
Contributor

@ickshonpe ickshonpe commented Dec 9, 2023

Objective

A nodes outline should be clipped using its own clipping rect, not its parents.

fixes #10921

Solution

Clip outlines by the node's own clipping rect, not the parent's.

If you compare the overflow ui example in main with this PR, you'll see that the outlines that appear when you hover above the images are now clipped along with the images.


Changelog

  • Outlines are now clipped using the node's own clipping rect, not the parent's.

@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-UI Graphical user interfaces, styles, layouts, and widgets labels Dec 9, 2023
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Dec 10, 2023
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Dec 10, 2023
Merged via the queue into bevyengine:main with commit 4a46f27 Dec 10, 2023
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI Node outlines are not clipped
3 participants