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

Fix FlowLayout LineSpacing and MinItemSpacing #2275

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

Kinnara
Copy link
Contributor

@Kinnara Kinnara commented Apr 12, 2020

Description

Fix FlowLayout's LineSpacing and MinItemSpacing and make them consistent with UniformGridLayout.

Motivation and Context

The ScrollOrientation() originally used in LineSpacing() and MinItemSpacing() always evaluated to ScrollOrientation::Vertical, and the expressions after the ? operator were reversed.

How Has This Been Tested?

Modified existing test.

@msftclas
Copy link

msftclas commented Apr 12, 2020

CLA assistant check
All CLA requirements met.

@msft-github-bot msft-github-bot added the needs-triage Issue needs to be triaged by the area owners label Apr 12, 2020
@marcelwgn
Copy link
Collaborator

Can you please add a test for this? :)

@Kinnara
Copy link
Contributor Author

Kinnara commented Apr 13, 2020

I believe the modified test already covers this in some way? It would fail without this fix.

Copy link
Collaborator

@marcelwgn marcelwgn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, my bad. Looks fine to me.

@ranjeshj
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ranjeshj ranjeshj merged commit 8c9f7ad into microsoft:master Apr 13, 2020
@ranjeshj ranjeshj added area-ItemsRepeater team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Apr 13, 2020
Kinnara added a commit to Kinnara/ModernWpf that referenced this pull request Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-ItemsRepeater team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants