|
|
|
@ -62,15 +62,10 @@ export class CADModal
|
|
|
|
|
dialog.insertBefore(dialogHeader, dialog.firstChild);//将header移回原dialog
|
|
|
|
|
if (this.canResize)//恢复上一次resize后尺寸
|
|
|
|
|
{
|
|
|
|
|
if (this.resizeSize)
|
|
|
|
|
{
|
|
|
|
|
this.container.style.height = this.resizeSize.height + "px";
|
|
|
|
|
this.container.style.width = (this.resizeSize.width + 1) + "px";
|
|
|
|
|
}
|
|
|
|
|
if (this.rndDiv)
|
|
|
|
|
{
|
|
|
|
|
this.rndDiv.style.width = this.container.style.width;
|
|
|
|
|
this.rndDiv.style.height = this.container.style.height;
|
|
|
|
|
this.rndDiv.style.width = (this.resizeSize.width + 1) + "px";
|
|
|
|
|
this.rndDiv.style.height = this.resizeSize.height + "px";
|
|
|
|
|
this.rndDiv.style.minWidth = "250px";
|
|
|
|
|
this.rndDiv.style.minHeight = "220px";
|
|
|
|
|
}
|
|
|
|
@ -408,8 +403,6 @@ export class CADModal
|
|
|
|
|
ele.style.minHeight = "0";
|
|
|
|
|
ele.style.width = "auto";
|
|
|
|
|
ele.style.height = "auto";
|
|
|
|
|
this.container.style.width = "auto";
|
|
|
|
|
this.container.style.height = "auto";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.container.blur();
|
|
|
|
@ -422,15 +415,10 @@ export class CADModal
|
|
|
|
|
if (this.container.classList.contains("max"))
|
|
|
|
|
{
|
|
|
|
|
this.container.classList.remove("max");
|
|
|
|
|
if (this.resizeSize)
|
|
|
|
|
{
|
|
|
|
|
this.container.style.height = this.resizeSize.height + "px";
|
|
|
|
|
this.container.style.width = (this.resizeSize.width + 1) + "px";
|
|
|
|
|
}
|
|
|
|
|
if (this.rndDiv)
|
|
|
|
|
{
|
|
|
|
|
this.rndDiv.style.width = this.container.style.width;
|
|
|
|
|
this.rndDiv.style.height = this.container.style.height;
|
|
|
|
|
this.rndDiv.style.width = (this.resizeSize.width + 1) + "px";
|
|
|
|
|
this.rndDiv.style.height = this.resizeSize.height + "px";
|
|
|
|
|
this.rndDiv.style.minWidth = "250px";
|
|
|
|
|
this.rndDiv.style.minHeight = "220px";
|
|
|
|
|
}
|
|
|
|
|