Browse Source

REPORT-54454 设置边距时后,封面图边框显示有偏移

final/10.0
kuangshuai 3 years ago
parent
commit
40ffe4a454
  1. 2
      designer-form/src/main/java/com/fr/design/designer/creator/XCreator.java

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

@ -692,7 +692,7 @@ public abstract class XCreator extends JPanel implements XComponent, XCreatorToo
if (coverPanel != null) {
coverPanel.setVisible(display);
coverPanel.setPreferredSize(editor.getPreferredSize());
coverPanel.setBounds(editor.getBounds());
coverPanel.setBounds(new Rectangle(0, 0 , editor.getWidth(), editor.getHeight()));
editor.repaint();
}
}

Loading…
Cancel
Save