You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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 expected
Your css is affecting the FitBody div, not the canvas. The default size of a <canvas> element is (it appears) 300x150. In order to get scaling to be correct, you should set the canvas to fill the div:
Hi @ShingYehGit. We have added the status/needs-info label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
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: