Need Diagram to have 100% Height

Hi,
I am using gojs Diagram inside my Angular application.

I want the diagram to take 100% height, for example if diagram drawn has height of 500px then 500px, if it has 1500px then 1500px
Right now i have given fixed height of 80vh and it is working fine.
but if I gave 100% height to the diagram-div then it takes 0px height.

Is there a way to set height as per diagram’s height.

Getting an HTML Div element to be 100% of the window’s client height actually has nothing to do with GoJS – it’s just a matter of getting the HTML and CSS right. Here is a simple example: https://gojs.net/extras/height100percent.html

View the page source code for how that is implemented.