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

The AlignmentX and AlignmentY properties of DrawingBrush class do not work on v11.1.1,v11.1.2,v11.1.3 #16810

Closed
YangCuisong opened this issue Aug 26, 2024 · 6 comments
Labels

Comments

@YangCuisong
Copy link

Describe the bug

The AlignmentX and AlignmentY properties of DrawingBrush class do not work on v11.1.1,v11.1.2,v11.1.3
but it's work on v11.1.0-beta1, v11.0.10.
On v11.1.0-beta1,v11.0.10 version,It's default value is Center,
On v11.1.1,v11.1.2,v11.1.3,It's default value is Top and Left,

To Reproduce

After upgrading the version, these two properties changed to Top and Left, and resetting the values has no effect.

Expected behavior

I hope to enable these two properties in the latest version, or change their default values to Center

Avalonia version

e.g. 11.1.1,11.1.2,11.1.3

OS

No response

Additional context

11 0 10
This is normal, in version 11.0.10。
11 1 2
This is abnormal in version 11.1.3。

@Gillibald
Copy link
Contributor

Please add a sample we can easily run at our end

@maxkatz6
Copy link
Member

Shouldn't these properties align content inside of the tile boundaries? I.e., in your case - inside of 64;64 tile.

@timunie
Copy link
Contributor

timunie commented Aug 26, 2024

Yeah looks like a bug in previous versions which was fixed. I remember slightly something like that before but it was wrong. Can't recall issue number atm.

@YangCuisong
Copy link
Author

Yeah looks like a bug in previous versions which was fixed. I remember slightly something like that before but it was wrong. Can't recall issue number atm.

Thank you, will it be fixed in the next version? When will the next version be released?

@YangCuisong
Copy link
Author

Shouldn't these properties align content inside of the tile boundaries? I.e., in your case - inside of 64;64 tile.

Yes,these properties align content inside of the tile boundaries. Using the same code, in the latest version, they do not work, but they work in versions before 11.1.0-beta1

@YangCuisong
Copy link
Author

Thank you, everyone. I have seen it and it has been fixed in version 11.2.0-beta1. Thank you very much for your support。

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

No branches or pull requests

4 participants