Refreshing Diagram Layout

Hello,

I have a situation where a DIV is resized:

It works, but the only changes to the desired size when I click over it.

Is there a way to force it to refresh?
Something like:

Thanks

Never mind, this did the trick:

myDiagram.layout.invalidateLayout();

http://gojs.net/latest/intro/resizing.html suggests that you call Diagram.requestUpdate().

Nice. Thanks again!