-
Notifications
You must be signed in to change notification settings - Fork 543
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
SkiaSharp.Views.Blazor and the SkiaSharp.Views not work well with Blazor/Wasm #3020
Comments
https://github.com/mono/SkiaSharp/tree/main/samples/Basic/BlazorWebAssembly |
Whatever tough SOS! |
404 |
Your css is affecting the canvas {
width: 100%;
height: 100%;
} |
Many Thanks |
Thanks for letting me know! |
Description
Blazor .Net 8 / SkiaSharp 2.88
(1).
in app.css
in Home.razor
work well, the div size (
width: 100%; height: calc(100vh - 5rem);
)as expected(2).
once
(3).
(4).
It should be whole white cover the
<div class=“FitBody”>
The SKCanvas canvas size is wrong
Only cover the Left Top part
The SKCanvas canvas size should be equal to the
div size (
width: 100%; height: calc(100vh - 5rem);
)as expectedCode
The best way to share code for larger projects is a link to a GitHub repository: https://github.com/user/repo/tree/bug-123
But, you can also share a short block of code here:
You can also share some XAML:
Expected Behavior
The SKCanvas canvas size should be equal to the
div size (width: 100%; height: calc(100vh - 5rem);)as expected
Actual Behavior
The SKCanvas canvas size is wrong
Only cover the Left Top part
Version of SkiaSharp
2.88.3 (Current)
Last Known Good Version of SkiaSharp
2.88.2 (Previous)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
Blazor/Wasm .Net 8 / SkiaSharp.Views.Blazor and the SkiaSharp.Views 2.88
Devices
Dell LapTop Win 11
Relevant Screenshots
Dell Laptop Window 11
Relevant Log Output
Code of Conduct
The text was updated successfully, but these errors were encountered: