UI / vertical scrolling is broken in `scroll` example

オープン
#26,440 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
frontend, game-dev

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Rust
スター
49.7k
フォーク
5k
平均マージ
3日 19時間
マージ済み PR(30日)
134

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bevyengine/bevy のほかの issue

bevyengine/bevy の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。