Skip to content

HStack/VStack aligmment is wrong for overflowing items. #554

@shial4

Description

@shial4

Describe the bug
VStack/HStack alignment is wrong for overflowing items. Let me describe bub on HStack example
HStack with smaller frame than content aligns items in center where it should start aligning them from the first item (leading)

To Reproduce
Steps to reproduce the behavior:

  1. Create HStack with fixed size i.e. 200
  2. Create HStack content for instance items of size 80 times 5
  3. Items are aligned in center

Expected behavior
Items aligned from the leading edge starting with 1st element, same way as SwiftUI does it.

Screenshots
Screenshot from 2023-10-22 11-04-27

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions