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

The scrolling list in the UI example doesn't handle resizing correctly #8401

Open
ickshonpe opened this issue Apr 16, 2023 · 1 comment
Open
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior C-Examples An addition or correction to our examples

Comments

@ickshonpe
Copy link
Contributor

ickshonpe commented Apr 16, 2023

Bevy version

main 0174d63

What you did

  1. cargo run --example ui
  2. Resize the window vertically so that there isn't room for the entire list in the box.
  3. Scroll the list down to the last item, as far as it will go.
  4. Resize the window vertically again so that there is room for more list elements.

What went wrong

The list doesn't move down to fill the available space.

Bevy App 16_04_2023 12_44_51

@ickshonpe ickshonpe added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Apr 16, 2023
@james7132 james7132 added C-Examples An addition or correction to our examples A-UI Graphical user interfaces, styles, layouts, and widgets and removed S-Needs-Triage This issue needs to be labelled labels Apr 16, 2023
@nicoburns
Copy link
Contributor

This:

  • Probably happens on any relayout (resizing would just be the easiest way to trigger it)
  • Also affects WIP: Support scrolling (Overflow::Scroll) in bevy_ui #8104. And the solution should probably be similar (check all scrollable lists after layout and clamp the scroll offset to the scrollable height of the node.

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 C-Examples An addition or correction to our examples
Projects
None yet
Development

No branches or pull requests

3 participants