-
Notifications
You must be signed in to change notification settings - Fork 144
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
Resizing the Canvas to fit Container #116
Comments
The component needs to have I'll take a look at creating a PR to resolve this as I am hitting this same issue. |
I have created a pull request #118 which resolves this issue. |
Hi @KieranFoot and @fdahlberg, have you got an example showing how you solved this? |
Say you want a border around the BECanvas so that you can see the extents like this: <BECanvas Width="300" Height="400" @ref="_canvasReference" style="border:2px solid"> This will give an error: crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] This makes it difficult to ensure that drawing is within bounds. |
Hi,
I have placed the BECanvas inside of a div. This div is resized based on the layout of my page. Is there a good way to automatically resize the BECanvas so that it always fill up the available space in the grid.
I've tried with both css and javascript but can't find a way that works reliably.
Using a normal canvas I found that using flexbox seemed to work fine. But I can't get this to work with BECanvas.
Kind Regards
Fredrik Dahlberg
The text was updated successfully, but these errors were encountered: