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

Fixes #85 - ContentSizer manipulating component Width to Zero on load #86

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

michael-hawker
Copy link
Member

Fixes #85

ContentSizer was overwriting Width to Zero causing initial layout problems of a component, instead this code is removed as it is not needed to maintain the same behavior. Added a test to validate the old behavior was incorrect and the new desired behavior should work.

See more in linked issue of the details of this.

Basically, this PR:

  • adds a unit test to validate the desired correct behavior (failing before, passing now).
  • removes code which is unneeded for the proper functioning of the component anyway.
  • bumps version number

ContentSizer was overwriting Width to Zero causing initial layout problems of a component, instead this code is removed as it is not needed to maintain the same behavior. Added a test to validate the old behavior was incorrect and the new desired behavior should work.
@michael-hawker michael-hawker added the bug Something isn't working label Jun 12, 2023
Copy link
Member

@Arlodotexe Arlodotexe left a comment

Choose a reason for hiding this comment

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

Tested locally, works under UWP, WASDK and WASM.

@michael-hawker michael-hawker merged commit 7885900 into main Jun 13, 2023
@delete-merged-branch delete-merged-branch bot deleted the llama/sizer-fix branch June 13, 2023 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ContentSizer sets Width to 0 if layout hasn't completed
2 participants