!3008 修复:bbs模态框在点击右侧边栏出现异常

pull/3011/MERGE
钱若寒 1 month ago committed by ChenX
parent 11e1d3ca42
commit 592448ce59

@ -358,7 +358,7 @@ export class LookOverBoardInfosModal extends React.Component<LookOverBoardInfosM
const rect = app.Editor.ModalManage.CurrentModal.rndDiv.getBoundingClientRect();
const { width, height, top, left } = rect;
const newOption = { height, width, top: Math.max(top, 0), left: Math.max(left, 0), isMax: false };
const newOption = { height: Math.max(height, 500), width: Math.max(width, 1150), top: Math.max(top, 0), left: Math.max(left, 0), isMax: false };
const noChange = Object.keys(newOption).every(key => newOption[key] === bbsModelStore.option[key]);
if (!noChange && !bbsModelStore.option.isMax)

@ -439,6 +439,7 @@ 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)
Object.assign(bbsModelStore.option, { width: minWidth, height: minHeight });
ele.style.minWidth = "0";

Loading…
Cancel
Save