pixijs / ui

Commonly used UI components for PixiJS
https://pixijs.io/ui/
MIT License
187 stars 17 forks source link

Fix: Incorrect ScrollBox Bidirectional Vertical Flow #164

Closed bbazukun123 closed 3 months ago

bbazukun123 commented 3 months ago

Summary

Current for bidirectional scroll box, item will flow down vertically using it's own height but a row can have varying height so temporarily row's maxHeight value is stored to accommodate this.

Behaviour Preview

Before

The overflowed item flows to the new line only using its height.

https://github.com/pixijs/ui/assets/4834594/6e66e9a5-0a7c-4a0f-b521-c3febc80eb46

After

The overflowed item flows to the new line only the row's height (of the tallest item)

https://github.com/pixijs/ui/assets/4834594/e53d0582-df84-4e7c-bfa4-9cd38db62737