Hi Indrani,
Please modify the below code example in your sample to resolve your reported issue.
Code example:
Methods.js
function setDiagramSize(showpropeditor) {
var width = $(window).width() - $("#main-left").width();
var pwidth = $("#propertyEditor").width();
var width = 270;
if (!showpropeditor) {
pwidth = 0;
}
else {
width += pwidth;
}
$("#main-right").css("width", "calc(100% - " + width + "px)");
diagram.updateViewPort();
}
Regards,
Shyam G