!2975 修复: 模态框最大化后再还原,拖拽缩放错误

pull/2978/head
张子涵 2 months ago committed by ChenX
parent 5493fc2a96
commit 3357ab2da1

@ -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";
}

Loading…
Cancel
Save