-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
AttachedDropShadow size changes abnormally #4548
Comments
Hello chenjt2001, thank you for opening an issue with us! I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌 |
Thanks for filing an issue @chenjt2001! We're registering to the WindowsCommunityToolkit/Microsoft.Toolkit.Uwp.UI/Shadows/AttachedDropShadow.cs Lines 140 to 160 in 00e9790
Maybe this is related to the note here about the existing rendersize vs. actualsize? Or possibly a delay between those values updating and the next layout pass occurring... Maybe we need to dispatch this or use the If this is enough for you to dig-in and debug, let me know if you want to take a look at it. If you need more assistance in getting the sample app to run locally to reproduce, let us know too. Thanks! |
Thanks. I found that the RenderSize is correct and the problem is that the mask is not updated. See the PR #4549. |
I copy pasted the Grid code in the sample app and see the issue when we adjust the window size changes abnormally and the PR created fixes the issue(Shadow remains constant as we adjust the window size) |
Describe the bug
AttachedDropShadow display problem when the size of the element that owns the AttachedDropShadow changes.
`
Regression
No response
Reproducible in sample app?
Steps to reproduce
Expected behavior
The shadow remains displayed on the entire edge of the Border.
Screenshots
When the application starts:
After resizing the window:
Windows Build Number
Other Windows Build number
Windows 21H2 (19044.1645)
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
17.1.6
Device form factor
Desktop
Nuget packages
Microsoft.NETCore.UniversalWindowsPlatform: 6.2.13
Microsoft.Toolkit.Uwp.UI: 7.1.2
Additional context
If we set the Border's Background to Transparent, we can find that the size of the window changes in time, but the aspect ratio of the shadow remains unchanged. Maybe that's the reason for the problem.
Help us help you
Yes, but only if others can assist.
The text was updated successfully, but these errors were encountered: