Skip to content

UI node gets compressed in ui example scrollable area boundary #8167

@doup

Description

@doup

Bevy version

v0.11.0-dev (ce33354)

Relevant system information

AdapterInfo { name: "Apple M2 Max", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }

What you did

  • In the ui example, scroll until a node shows at the boundary

What went wrong

See how Item 18 gets vertically compressed when it's on the boundary:

image

For comparison, this is how it should look like (this image is when the node it's not at the boundary):

image

I've debugged in XCode and I'm seeing this:

image

I've compared the Y position & UVs for the letter m from Item 17 and Item 18:

image

image

  • The height of Item 17 m letter is 9.5 (pos 2-1), and vertical UV range is 0.37 (uv 2-1)
  • The height of Item 18 m letter is 3.5 (36.8% of 9.5)
  • The UV (v) for 4 is 0.25 (67.6%), instead it should be 0.136 (36.8%)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions