-
Notifications
You must be signed in to change notification settings - Fork 788
fix: Remove Skia Wasm WebView border #20605
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
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.
Pull Request Overview
This PR fixes the WebView border issue on Skia Wasm by refactoring the styling initialization for the WebView component. The changes include replacing the old SetBackground method with a new InitializeStyling method in both TypeScript and C# code, and updating the NativeMethods interop accordingly.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
src/Uno.UI/ts/Windows/UI/Xaml/Controls/WebView.ts | Replaced setBackground with initializeStyling to set transparent background and remove border |
src/Uno.UI/UI/Xaml/Controls/WebView/Native/Wasm/NativeWebView.wasm.cs | Updated to use InitializeStyling instead of SetBackground |
src/Uno.UI/UI/Xaml/Controls/WebView/Native/Wasm/NativeWebView.Interop.wasm.cs | Added import for InitializeStyling and removed import for the old SetBackground |
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20605/wasm-skia-net9/index.html |
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20605/docs/index.html |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20605/wasm-skia-net9/index.html |
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20605/docs/index.html |
|
4ac5503
to
eb6944b
Compare
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20605/docs/index.html |
|
The build 167350 found UI Test snapshots differences: Details
|
GitHub Issue (If applicable): closes #20403, closes #20587
PR Type
What kind of change does this PR introduce?
What is the new behavior?
This pull request refactors the styling initialization for the
WebView
component in the Uno Platform. The most significant changes include replacing theSetBackground
method with a newInitializeStyling
method to streamline and centralize styling setup, and updating related TypeScript and C# code to reflect this change.PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.