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

[release/2.x] Do not stretch the background #2925

Open
wants to merge 1 commit into
base: release/2.x
Choose a base branch
from

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Jul 5, 2024

Backport of 3ace63b from #2922.

* Do not stretch the background

When resizing a view, the background will be stretched making the image distorted and not a great experience.

This PR make sure to never scale the background brush and rather keep it top-left aligned.

* Update SKXamlCanvas.cs

* Scale the brush instead of stretching it

(cherry picked from commit 3ace63b)
@github-actions github-actions bot added the backport This PR is an automatic backport. label Jul 5, 2024
Copy link
Contributor

@taublast taublast left a comment

Choose a reason for hiding this comment

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

Didn't see this in action but the code looks fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport This PR is an automatic backport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants