-
Notifications
You must be signed in to change notification settings - Fork 27
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
[ShadowContainer][All Platforms] ShadowContainer not resizing properly #807
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add some tests for this @rafael-rosa-knowcode please?
Related to resizing, I updated the internal logic to fit the TextBox issue as the problem seemed similar. I isolated the ItemsControl and removed the shadows from it. Works on Skia. The isolated one and the shadows. ItemsControlSkia.mp4But on Android does not. ItemsControlAndroid.mp4 |
@roubachof can you validate again? |
0eb9f8a
to
34d8c6f
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-807.eastus2.azurestaticapps.net |
@Mergifyio backport legacy/3x release/stable/3.1 |
✅ Backports have been created
|
GitHub Issue (If applicable): closes: #798
PR Type
What kind of change does this PR introduce?
What is the current behavior?
ShadowContainer is correctly stretching iwhen the content is changed to be larger but if the content is then shrunk, the ShadowContainer does not resize:
See Shadow Builder control inside of the Toolkit sample app:
What is the new behavior?
Removed some commented code and conditional layout refactoring.
Now the Canvas free up allocated space so content can reduce in size.
CanvasSize.mp4
PR Checklist
Please check if your PR fulfills the following requirements: