Browse Source

REPORT-57647 cpt参数面板中组件被下方覆盖时 工具需要不可见

zheng-1641779399395
hades 3 years ago
parent
commit
f97a0bf718
  1. 6
      designer-form/src/main/java/com/fr/design/designer/creator/XCreator.java

6
designer-form/src/main/java/com/fr/design/designer/creator/XCreator.java

@ -783,6 +783,12 @@ public abstract class XCreator extends JPanel implements XComponent, XCreatorToo
// 不超过可绘制区域
int extraX = Math.min(creatorRightX, formDesignerWidth);
int extraY = creatorRightY < 0 ? 0 : Math.min(creatorRightY, formDesignerHeight);
if (designer.isFormParaDesigner() && extraY + this.getHeight() >= formDesignerHeight) {
popup.setVisible(false);
return;
}
// 放到事件尾部执行
SwingUtilities.invokeLater(new Runnable() {
@Override

Loading…
Cancel
Save