Repository navigation
[iOS] Image wrongly layouted when a transform is applied - #2803
Merged
Merged
Conversation
dr1rrb
approved these changes
Mar 12, 2020
|
|
||
| namespace UITests.Windows_UI_Xaml_Controls.ImageTests | ||
| { | ||
| [SampleControlInfo("Image")] |
Member
There was a problem hiding this comment.
Suggested change
| [SampleControlInfo("Image")] | |
| [Sample("Image", "Transform")] |
jeromelaban
approved these changes
Mar 12, 2020
Co-Authored-By: Jérôme Laban <[email protected]>
| { | ||
| var availableSize = Frame.Size; | ||
| // Use "Bounds" over "Frame" because it includes all transforms | ||
| var availableSize = Bounds.Size.ToFoundationSize(); ; |
|
|
||
| return _previousSize = size; | ||
| } | ||
| public override CGSize SizeThatFits(CGSize size) => _layouter.Measure(size.ToFoundationSize()); |
Contributor
There was a problem hiding this comment.
Contributor
|
The build 13045 found UI Test snapshots differences.
|
Member
|
@Mergifyio backport release/beta/2.1 |
Contributor
|
Command
|
jeromelaban
added a commit
that referenced
this pull request
Mar 13, 2020
[iOS] Image wrongly layouted when a transform is applied (bp #2803)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #2441
Bugfix
What is the current behavior?
Applying a render transform directly on an
<Image>on iOS were producing a wrongly layouted image.What is the new behavior?
Render transform is now applied correctly.
PR Checklist
[ ] Docs have been added/updated which fit documentation template (for bug fixes / features)Screenshots Compare Test Runresults.