Update Body when Sidebar Toggle


I have a question: When toggle the sidebar these two methods are fired:

await InvokeAsync(() => { sidebar0.Toggle(); });
await InvokeAsync(() => { body0.Toggle(); });

Within the body I have a div containing a plotlyjs plot. Reszize is done fine with my components. But when I toggle the sidebar there is no rezize or refresh fired.

Do you have any suggestions what I can do?

Thanks Chris

You can try invoking the resize API via Blazor's JavaSript interop. Full disclosure - I don't know what the plotlyjs API is or if it has any resizing API.