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

Issue with UI clipping on scale factor greater than 1 #3493

Closed
mockersf opened this issue Dec 30, 2021 · 2 comments
Closed

Issue with UI clipping on scale factor greater than 1 #3493

mockersf opened this issue Dec 30, 2021 · 2 comments
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior

Comments

@mockersf
Copy link
Member

mockersf commented Dec 30, 2021

Bevy version

current main d8d3fdf

Operating system & version

macOS & webgl2

What you did

Run ui example at different scales

What you expected to happen

Clipping should work the same

What actually happened

Clipping has artefacts at scale greater than 1. They are more visible at the bottom of the list

scale 1:
Screenshot 2021-12-30 at 04 09 41

scale 2:
Screenshot 2021-12-30 at 04 07 09

scale 3:
Screenshot 2021-12-30 at 04 10 51

Additional information

You can add

        .insert_resource(WindowDescriptor {
            scale_factor_override: Some(3.0),
            ..Default::default()
        })

to the ui example to make it visible

@mockersf mockersf added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled A-UI Graphical user interfaces, styles, layouts, and widgets and removed S-Needs-Triage This issue needs to be labelled labels Dec 30, 2021
@Davier
Copy link
Contributor

Davier commented Jan 2, 2022

Found the issue, the node size and atlas size need to be scaled in some equations. I'm working on a fix.

@Weibye
Copy link
Contributor

Weibye commented Aug 3, 2022

Was in the process of adopting #3533 but realized the problem had already been fixed by #3854

@Weibye Weibye closed this as completed Aug 3, 2022
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants