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

Scroller: Fixing layout of partially stretched Content #894

Merged
merged 4 commits into from
Jun 26, 2019

Conversation

RBrid
Copy link
Contributor

@RBrid RBrid commented Jun 18, 2019

These changes address a bug mentioned in Issue #829.
When using a Viewbox as the Content of a Scroller, in Stretched alignment mode, the computed Scroller.ExtentWidth or Scroller.ExtentHeight could be wrong. In the reported case, the Viewbox contained an Image that was partially stretched to preserve its aspect ratio. The Scroller viewport size cannot assumed to be the final extent. When the stretched Content renders smaller than the viewport, it is re-arranged using the smaller rendering size so it is positioned as expected within the viewport, and the extent is corrected accordingly.
Expanded the MUXControlsTestApp and added a new TAEF test to better cover these scenarios.

@RBrid RBrid added bug Something isn't working area-Scrolling labels Jun 18, 2019
@RBrid RBrid requested a review from a team June 18, 2019 23:48
@RBrid RBrid self-assigned this Jun 18, 2019
@RBrid RBrid requested a review from StephenLPeters June 24, 2019 23:23
Copy link
Contributor

@StephenLPeters StephenLPeters left a comment

Choose a reason for hiding this comment

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

:shipit:

@RBrid RBrid merged commit 2164ad2 into master Jun 26, 2019
@jevansaks jevansaks deleted the user/rbrid/ScrollerViewboxContent branch June 26, 2019 22:27
@jevansaks jevansaks added the release note PR that we want to call out in the next release summary label Jun 26, 2019
@msft-github-bot
Copy link
Collaborator

🎉Microsoft.UI.Xaml v2.2.190702001-prerelease has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Scrolling bug Something isn't working release note PR that we want to call out in the next release summary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants