Black Lives Matter. Please consider donating to Black Girls Code today.

Resizing window and plot

Should the figure resize itself when I resize the window? I plot into an Electron window from Julia using PlotlyJS.jl.
The re-layouting works when I run the code in Julia (I added a bit of code to handle the change in the window size), but once the code has run its course and I am left only with
the window, resizing the window does not do anything with the figure.
s

Do I need to install some sort of handler for this?

The solution is posted here: https://discourse.julialang.org/t/plotlyjs-vs-plots-plotlyjs/46179/7