!3013 修复: 模态框尺寸记录的条件

pull/2534/MERGE
张子涵 1 month ago committed by ChenX
parent b17720de88
commit 56b8fb03ef

@ -439,7 +439,9 @@ export class CADModal
// 记录bbs框最小化之前的大小
const minWidth = Math.min(window.innerWidth - rect.left, rect.width);
const minHeight = Math.min(window.innerHeight - rect.top, rect.height);
if (minWidth > 1150 && minHeight > 500)
// 因为最小化后H=40W依据title变化
// 故这里minHeight > 50minWidth给一个差不多的值就行300(title约9个中文)
if (minWidth > 300 && minHeight > 50)
Object.assign(bbsModelStore.option, { width: minWidth, height: minHeight });
ele.style.minWidth = "0";

Loading…
Cancel
Save