Hello, I'm using Kendo UI for JQuery Diagram in Angular and I have a problem with the size.
I want the diagram to fit to its container, and I have the container height and width set to 100%.
When first initialized, the height and width of the "k-layer" div is automatically set to always 600px which does not fit to its container.
And when I resize the window manually, this "k-layer" size changes to fit to the container size.
My question is, how can I make this diagram to fit its container when initially loaded?
I tried calling kendo.resize("wrapper") when initially loaded, but this does not work.
FYI, I initialize the diagram in ngAfterViewInit().
Please see the screenshot I attached.
This screenshot shows the initial size is 600px.
And the code below is the code I use to initialize the diagram.