UI / vertical scrolling is broken in `scroll` example

Abierto
#26,440 0 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

Start by running the scroll example and compare its layout before and after the Taffy update referenced in the issue. The report points to UI node dimensions and alignment behavior, but does not identify a file or test; trace the example and the Taffy alignment changes to locate the regression. Done means the lists remain in frame and vertical scrolling behaves correctly with the reported item counts.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

A-UI C-Bug C-Examples I-Regression S-Ready-For-Implementation X-Uncontroversial

Bevy version and features

What you did

Run the scroll example to test vertical scrolling

What went wrong

There are "two" main issues that show up in this example:

  1. The UI layout is not correct: Some lists like the bidirectional scrolling lists and the nested scrolling list are not visible, rendering out of frame (See additional information below).
  2. Vertical scrolling is not working correctly: Because of how messed up the UI is, it makes vertical scrolling seem like it is bugged or not working at all, if I increase the amount of items (changing the "spawn range" from 0..25 to 0..100) then it works fine, maybe the container is showing the 25 items it has, but this is hard to tell as half of the list is out of frame and previously the container only showed 15 items at once.

Additional information

I am not sure if scroll is only the example that has this problem, but it SEEMS the issue has something to do with the dimensions of the nodes because of how the vertical scrolling list seems to have enough height (with height: percent(50)) to show all the its items, and how the other lists are rendering out of frame despite the only thing dictating their spacing is justify_content: JustifyContent::SpaceBetween in the parent container with a width and height of percent(100).

The commit updating Taffy is small and doesn't touch the scroll example or any UI logic except updating Taffy's alignment style types that changed from being enums to structs in v0.11.0.

Before e3d48d6:
Image

After e3d48d6:
Image

EDIT: Wording

Lenguaje dominante
Rust
Estrellas
49.7k
Forks
5k
Merge medio
3 d 19 h
PR fusionados (30 d)
134

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bevyengine/bevy

Todos los issues de bevyengine/bevy

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.