-
Notifications
You must be signed in to change notification settings - Fork 700
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
Padding (and even children Margin) clips children on Android #12877
Comments
@roubachof tested and said it was the same using latest Uno 5.0.0-dev.1380 |
@roubachof On Android, I'm having far worse result... |
Yup this is another issue: a regression on layout with uno 5, it also impact ios. |
@roubachof could you create another issue with a before/after issue for that particular layout problem that is a regression? We're going to need to look at it separately. This issue may also still be blocked by the fact that we can't debug on android properly at this time. |
There's still a little bit of clipping, but it's a lot better for sure. |
This is in fact the same clipping, but since the fix I created for wasm was integrated in 2.88.4-preview (mono/SkiaSharp#2443), you have now the correct shadow color, which is softer and doesn't enlighten the wasm clipping so much. |
Current behavior
It seems that when setting Padding on a parent view, it clips children on android, whereas on other platform it does not clip the children.
Expected behavior
Padding and margin should behave consistently between platform hence android shouldn't clip child when using padding or child margin.
How to reproduce it (as minimally and precisely as possible)
Launch Uno toolkit winui sample, and select the ShadowContainer sample, from this branch:
unoplatform/uno.toolkit.ui#571
you will see that the first "Neumorphism" card is clipped by its parent padding
on Windows and iOS, the children shadows are not clipped.
![windows_padding](https://private-user-images.githubusercontent.com/596903/253034801-889af342-df1e-439a-beff-76156e7f64f6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MjA1MjEsIm5iZiI6MTcyMTgyMDIyMSwicGF0aCI6Ii81OTY5MDMvMjUzMDM0ODAxLTg4OWFmMzQyLWRmMWUtNDM5YS1iZWZmLTc2MTU2ZTdmNjRmNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFl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Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.av0WVpvz1EICylLDP1KJRd4Kjhk2MeTPQRqkWanEuaY)
remark: Shadows are implement by a SKXamlCanvas .
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
Uno.WinUI 4.7.37, 4.9.26
SkiaSharp.Views.Uno.WinUI 2.88.3
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: