Setting Diagram Div Height in %

hello,

i am having a div element as a diagram area and want to set height to 100%. But setting of height in % doesnt affect the div element is there any other way . I dont want to set in px as i want it to be a responsive UI.Please help

This might not be a GoJS issue. Have you specified the HTML and BODY height?

<style> html { height: 100%; } body { height: 100%; min-height: 100%; margin: 0; } </style>
Also if the DIV sizes changes without the window size changing, you need to update the Diagram: http://www.gojs.net/latest/intro/resizing.html

If you are using “gojs-react” you can set min width and height in the
GoJSApp.css.

.diagram-component {
min-width: 80vh;
min-height: 70vh;
border: solid 1px black;
background-color: white;
}