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

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

Open
shial4 opened this issue Oct 22, 2023 · 2 comments
Open

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

shial4 opened this issue Oct 22, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@shial4
Copy link

shial4 commented Oct 22, 2023

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

@shial4 shial4 added the bug Something isn't working label Oct 22, 2023
@shial4
Copy link
Author

shial4 commented Oct 22, 2023

SwiftUI example

Screenshot 2023-10-22 at 11 17 24

@shial4
Copy link
Author

shial4 commented Oct 22, 2023

actually, after further investigation. I'm not sure what is the root of it, but behaviour is different for the same code in SwiftUI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants