Skip to content

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

3 participants