# Update Body when Sidebar Toggle

**URL:** <https://forum.radzen.com/t/update-body-when-sidebar-toggle/5834>\
**Category:** Radzen.Blazor Components\
**Created:** [November 28, 2020, 3:50pm UTC](https://forum.radzen.com/t/update-body-when-sidebar-toggle/5834 "2020-11-28T15:50:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisOnMoon](https://forum.radzen.com/letter_avatar_proxy/v4/letter/c/f6c823/32.png) [@ChrisOnMoon](https://forum.radzen.com/u/ChrisOnMoon)\
**Post date:** [November 28, 2020, 3:50pm UTC](https://forum.radzen.com/t/update-body-when-sidebar-toggle/5834/1 "2020-11-28T15:50:03Z")

</div>

Hello,

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

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [November 28, 2020, 3:56pm UTC](https://forum.radzen.com/t/update-body-when-sidebar-toggle/5834/2 "2020-11-28T15:56:47Z")

</div>

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.
